We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 925630f commit 4a22c42Copy full SHA for 4a22c42
lib/net/http.rb
@@ -1615,8 +1615,8 @@ def connect
1615
write_timeout: @write_timeout,
1616
continue_timeout: @continue_timeout,
1617
debug_output: @debug_output)
1618
- buf = +"CONNECT #{conn_address}:#{@port} HTTP/#{HTTPVersion}\r\n"
1619
- buf << "Host: #{@address}:#{@port}\r\n"
+ buf = +"CONNECT #{conn_address}:#{@port} HTTP/#{HTTPVersion}\r\n" \
+ "Host: #{@address}:#{@port}\r\n"
1620
if proxy_user
1621
credential = ["#{proxy_user}:#{proxy_pass}"].pack('m0')
1622
buf << "Proxy-Authorization: Basic #{credential}\r\n"
0 commit comments