From e8f04ed71dcf2667674256873bf6145cc2f7d0f7 Mon Sep 17 00:00:00 2001 From: knu Date: Wed, 18 Dec 2002 19:22:46 +0000 Subject: Add a missing ||. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/open-uri.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 54afb4d88..2a7206257 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 -- cgit