Skip to content

Commit 4e8840f

Browse files
authored
Merge pull request libgit2#6022 from lollipopman/connect-proxy-host-header
Set Host Header to match CONNECT authority target
2 parents 98be5a1 + fc5d0e8 commit 4e8840f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transports/httpclient.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ static int generate_connect_request(
670670
git_buf_puts(buf, "\r\n");
671671

672672
git_buf_puts(buf, "Host: ");
673-
puts_host_and_port(buf, &client->proxy.url, false);
673+
puts_host_and_port(buf, &client->server.url, true);
674674
git_buf_puts(buf, "\r\n");
675675

676676
if ((error = apply_proxy_credentials(buf, client, request) < 0))

0 commit comments

Comments
 (0)