open-uri('http://user:pass@www.host.de/') does not work as expected.
Index: lib/open-uri.rb
===================================================================
--- lib/open-uri.rb (revision 11598)
+++ lib/open-uri.rb (working copy)
@@ -121,6 +121,9 @@
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 ||
adds this...
|