You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux evertbook6 5.15.0-27-generic nodejs/node#28-Ubuntu SMP Thu Apr 14 04:55:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
Node will lose headers that were added to the request after constructing the Request object, but_only_ if a custom Headers object was also passed in. This reproduces the issue
I'm not fully certain if #1401 tests for the the exact same issue. One thing that's at least different is that I'm changing a header after constructing the Request object. I don't think there's a test there that covers that case, but it does seem related to very possible that this is also fixed.
Version
v18.1.0
Platform
Linux evertbook6 5.15.0-27-generic nodejs/node#28-Ubuntu SMP Thu Apr 14 04:55:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
Node will lose headers that were added to the request after constructing the Request object, but_only_ if a custom Headers object was also passed in. This reproduces the issue
This does not happen when a headers object was not passed in:
Oof this took a lot of experimentation to get to :S
I think this was introduced with Node 18.1.0, because I have a feeling my my tests passed with 18.0.0
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
The following headers on the server:
What do you see instead?
@jasnell
The text was updated successfully, but these errors were encountered: