lib/faraday/adapter/net_http.rb in faraday-net_http-3.3.0 vs lib/faraday/adapter/net_http.rb in faraday-net_http-3.4.0
- old
+ new
@@ -51,10 +51,11 @@
proxy = env[:request][:proxy]
port = env[:url].port || (env[:url].scheme == 'https' ? 443 : 80)
if proxy
Net::HTTP.new(env[:url].hostname, port,
proxy[:uri].hostname, proxy[:uri].port,
- proxy[:user], proxy[:password])
+ proxy[:user], proxy[:password],
+ nil, proxy[:uri].scheme == 'https')
else
Net::HTTP.new(env[:url].hostname, port, nil)
end
end