diff --git a/lib/http/request.rb b/lib/http/request.rb index fd304058..77e3f671 100644 --- a/lib/http/request.rb +++ b/lib/http/request.rb @@ -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