summaryrefslogtreecommitdiff
path: root/lib/chef/http
diff options
context:
space:
mode:
authorSalim Alam <salam@chef.io>2016-03-18 12:31:55 -0700
committerSalim Alam <salam@chef.io>2016-03-21 21:23:08 -0700
commit3b500ca0714e95584411c109fd6d4000dee9d50e (patch)
treef46db41dcda7946005a5d445f026249923e8b962 /lib/chef/http
parent88e05318bc4409b24e9e5ac45403cfde21ad7006 (diff)
downloadchef-3b500ca0714e95584411c109fd6d4000dee9d50e.tar.gz
Update config spec
Diffstat (limited to 'lib/chef/http')
-rw-r--r--lib/chef/http/basic_client.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/http/basic_client.rb b/lib/chef/http/basic_client.rb
index 4253701510..3a87fe85e4 100644
--- a/lib/chef/http/basic_client.rb
+++ b/lib/chef/http/basic_client.rb
@@ -106,6 +106,7 @@ class Chef
# match no_proxy with a fuzzy matcher, rather than letting Net::HTTP
# do it.
http_client = http_client_builder.new(host, port, nil)
+ http_client.proxy_port = nil if http_client.proxy_address == nil
if url.scheme == HTTPS
configure_ssl(http_client)