We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProxyAgent
host
ProxyAgent causes headers.host to be forcibly reset in undici.request
headers.host
undici.request('http://127.0.0.1:8000', { headers: { host: 'test.com', }, dispatcher: new ProxyAgent({ uri: 'http://127.0.0.1:1087', }), });
request.headers.host should be test.com instead of 127.0.0.1:8000
request.headers.host
test.com
127.0.0.1:8000
macOS 14.4.0 node v20.11.0 undici 6.10.2
without proxy
undici.request('http://127.0.0.1:8000', { headers: { host: 'test.com', }, });
The text was updated successfully, but these errors were encountered:
Thanks for the report, would you like to submit a PR for it?
Sorry, something went wrong.
I'd love to try and fix it.
Successfully merging a pull request may close this issue.
Bug Description
ProxyAgent
causesheaders.host
to be forcibly reset in undici.requestReproducible By
Expected Behavior
request.headers.host
should betest.com
instead of127.0.0.1:8000
Logs & Screenshots
Environment
macOS 14.4.0
node v20.11.0
undici 6.10.2
Additional context
without proxy
The text was updated successfully, but these errors were encountered: