Skip to content

Commit

Permalink
[ruby/net-http] Fix on 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles authored and matzbot committed Aug 16, 2023
1 parent 4d21134 commit 70da92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/http.rb
Expand Up @@ -1615,7 +1615,7 @@ def connect
write_timeout: @write_timeout,
continue_timeout: @continue_timeout,
debug_output: @debug_output)
buf = "CONNECT #{conn_address}:#{@port} HTTP/#{HTTPVersion}\r\n"
buf = +"CONNECT #{conn_address}:#{@port} HTTP/#{HTTPVersion}\r\n"
buf << "Host: #{@address}:#{@port}\r\n"
if proxy_user
credential = ["#{proxy_user}:#{proxy_pass}"].pack('m0')
Expand Down

0 comments on commit 70da92c

Please sign in to comment.