Unverified Commit 4e8840fd by Edward Thomson Committed by GitHub

Merge pull request #6022 from lollipopman/connect-proxy-host-header

Set Host Header to match CONNECT authority target
parents 98be5a11 fc5d0e80
...@@ -670,7 +670,7 @@ static int generate_connect_request( ...@@ -670,7 +670,7 @@ static int generate_connect_request(
git_buf_puts(buf, "\r\n"); git_buf_puts(buf, "\r\n");
git_buf_puts(buf, "Host: "); git_buf_puts(buf, "Host: ");
puts_host_and_port(buf, &client->proxy.url, false); puts_host_and_port(buf, &client->server.url, true);
git_buf_puts(buf, "\r\n"); git_buf_puts(buf, "\r\n");
if ((error = apply_proxy_credentials(buf, client, request) < 0)) if ((error = apply_proxy_credentials(buf, client, request) < 0))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment