summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/open-uri.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fa7a0bd37c..2764d4550c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Nov 13 17:56:41 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (OpenURI.open_uri): use File::RDONLY.
+ reported by Take_tk <ggb03124@nifty.ne.jp>.
+
Thu Nov 13 16:45:53 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
* ext/openssl/ossl_x509req.c (ossl_x509req_to_der): add function for
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index 8ff5a10b86..132a1f4662 100644
--- a/lib/open-uri.rb
+++ b/lib/open-uri.rb
@@ -98,7 +98,7 @@ module OpenURI
unless mode == nil ||
mode == 'r' || mode == 'rb' ||
- mode == O_RDONLY
+ mode == File::RDONLY
raise ArgumentError.new("invalid access mode #{mode} (#{uri.class} resource is read only.)")
end