Skip to content

lib/fetch: Add HTTP Host header to CONNECT requests#690

Open
e-karge wants to merge 1 commit into
void-linux:masterfrom
e-karge:master
Open

lib/fetch: Add HTTP Host header to CONNECT requests#690
e-karge wants to merge 1 commit into
void-linux:masterfrom
e-karge:master

Conversation

@e-karge

@e-karge e-karge commented Jun 11, 2026

Copy link
Copy Markdown

According to RFC-9110 7.2 the Host header must be present in all HTTP/1.1 requests. That seems to include 9.3.6 CONNECT requests as can be seen in the examples in that later section.

The issue popped up when using void-linux in WSL in conjunction with px as proxy to handle upstream NTLM proxy authentication (px rejects requests without Host header). The patch provided solved the issue.

tbh, this PR is kind of a stopgap measure, merging #373 would render it obsolete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant