Skip to content

Commit

Permalink
Merge pull request #159 from chrchr/proxy_with_ssl
Browse files Browse the repository at this point in the history
This makes SSL connections via proxies work correctly.
  • Loading branch information
tarcieri committed Oct 2, 2014
2 parents 409c983 + d1a4576 commit 0148f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http/client.rb
Expand Up @@ -51,7 +51,7 @@ def perform(req, options)

# TODO: keep-alive support
@socket = options[:socket_class].open(req.socket_host, req.socket_port)
@socket = start_tls(@socket, options) if uri.is_a?(URI::HTTPS)
@socket = start_tls(@socket, options) if uri.is_a?(URI::HTTPS) && !req.using_proxy?

req.stream @socket

Expand Down

0 comments on commit 0148f73

Please sign in to comment.