summaryrefslogtreecommitdiffstats
path: root/lib/open-uri.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-31 06:10:06 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-01-31 06:10:06 +0000
commita4e4a24ce9654c2ff8fe02b0707eae5f7f6460f9 (patch)
tree38ce25e4bab9d16a5ffb4c8476a71fc239f30001 /lib/open-uri.rb
parent27fa603e0733ed9e8b59b6eaa7547d1499394a24 (diff)
downloadruby-a4e4a24ce9654c2ff8fe02b0707eae5f7f6460f9.tar.gz
ruby-a4e4a24ce9654c2ff8fe02b0707eae5f7f6460f9.tar.xz
ruby-a4e4a24ce9654c2ff8fe02b0707eae5f7f6460f9.zip
* lib/open-uri.rb (OpenURI::OpenURI.open_uri): revert last change to conform RFC3986. [ruby-dev:30230]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/open-uri.rb')
-rw-r--r--lib/open-uri.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index 1ccb4f261..56c78f046 100644
--- a/lib/open-uri.rb
+++ b/lib/open-uri.rb
@@ -125,9 +125,6 @@ module OpenURI
options = rest.shift if !rest.empty? && Hash === rest.first
raise ArgumentError.new("extra arguments") if !rest.empty?
options ||= {}
- if uri.user and uri.password and not options[:http_basic_authentication]
- options[:http_basic_authentication] = [uri.user,uri.password]
- end
OpenURI.check_options(options)
unless mode == nil ||