summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-18 12:20:31 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-18 12:20:31 +0000
commit24a52978d4e2fe59cfa57c216c1118dce5f81640 (patch)
tree4f6a42c6e80e4755cf3c1e0d0f292f47f8408ec4 /lib
parentaef778b4e76e768941a790a5e8370b86ec6ac27f (diff)
* lib/open-uri.rb: Make proxy disabling working again.
Fixed by Christophe Philemotte. [ruby-core:59650] [Bug #9385] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/open-uri.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index 86aa0f1887..82339ed473 100644
--- a/lib/open-uri.rb
+++ b/lib/open-uri.rb
@@ -288,7 +288,7 @@ module OpenURI
end
end
- http = klass.new(target_host, target_port)
+ http = proxy ? klass.new(target_host, target_port) : klass.new(target_host, target_port, nil)
if target.class == URI::HTTPS
require 'net/https'
http.use_ssl = true