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
20.9.0
Darwin Calebs-MBP-2 21.4.0 Darwin Kernel Version 21.4.0: Mon Feb 21 20:35:58 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T6000 arm64
undici
const request1 = new Request('localhost:3000', {method: 'POST', headers: {a: 'b'}}); request1.headers.get('a'); // Ok: 'b' const request2 = new Request(request1, {method: 'GET'}); request2.headers.get('a'); // Node.js returns null, Chrome returns 'b'
Reproduces 100% of the time
Expected behavior is request2.headers.get('a') returns 'b' like the browser.
request2.headers.get('a')
'b'
request2.headers.get('a') returns null.
No response
The text was updated successfully, but these errors were encountered:
duplicate of #50263
Sorry, something went wrong.
No branches or pull requests
Version
20.9.0
Platform
Darwin Calebs-MBP-2 21.4.0 Darwin Kernel Version 21.4.0: Mon Feb 21 20:35:58 PST 2022; root:xnu-8020.101.4~2/RELEASE_ARM64_T6000 arm64
Subsystem
undici
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Reproduces 100% of the time
What is the expected behavior? Why is that the expected behavior?
Expected behavior is
request2.headers.get('a')
returns'b'
like the browser.What do you see instead?
request2.headers.get('a')
returns null.Additional information
No response
The text was updated successfully, but these errors were encountered: