summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/open-uri.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index f9822a9847..b793828063 100644
--- a/lib/open-uri.rb
+++ b/lib/open-uri.rb
@@ -256,8 +256,7 @@ module OpenURI
raise "Non-HTTP proxy URI: #{proxy_uri}" if proxy_uri.class != URI::HTTP
end
- if target.userinfo && "1.9.0" <= RUBY_VERSION
- # don't raise for 1.8 because compatibility.
+ if target.userinfo
raise ArgumentError, "userinfo not supported. [RFC3986]"
end