Skip to content

Commit

Permalink
Merge pull request #218 from Connorhd/https-proxy-fix
Browse files Browse the repository at this point in the history
Make sure port number isn't blank for proxy connect
  • Loading branch information
ixti committed May 9, 2015
2 parents 6822a57 + 4afa7b0 commit 43f02cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def headline

# Compute HTTP request header SSL proxy connection
def proxy_connect_header
"CONNECT #{@uri.host}:#{@uri.port} HTTP/#{version}"
"CONNECT #{host}:#{port} HTTP/#{version}"
end

# Headers to send with proxy connect request
Expand Down

0 comments on commit 43f02cc

Please sign in to comment.