summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/open-uri.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 794314b996..5ae2d094bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Dec 19 04:21:10 2002 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/open-uri.rb: add a missing ||. (found by: ruby -wc)
+
Wed Dec 18 03:52:55 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* string.c (rb_str_new4): handle tail shared string.
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index 54afb4d88b..2a72062574 100644
--- a/lib/open-uri.rb
+++ b/lib/open-uri.rb
@@ -82,7 +82,7 @@ module OpenURI
end
unless mode == nil ||
- mode == 'r' || mode == 'rb'
+ mode == 'r' || mode == 'rb' ||
mode == O_RDONLY
raise ArgumentError.new("invalid access mode #{mode} (#{uri.class} resource is read only.)")
end