| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Instead, we rely on the underlying http implementation in Node.js to handle this, as per the documentation at https://nodejs.org/api/http.html#new-agentoptions This fixes node-fetch#1735 and likely replaces node-fetch#1473 The original change introducing this provided no clear motivation for the override, and the implementation has since been changed to disable this header when an agent is provided, so I think there is sufficient evidence that removing this is the correct behaviour. node-fetch@af21ae6 node-fetch@7f68577 This commit is backported to the v2 branch from node-fetch#1736 against v3.
There was a problem hiding this comment.
LGTM 👍
Sorry, something went wrong.
|
🎉 This PR is included in version 2.6.13 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sorry, something went wrong.
|
This has broken some tests we did with https://github.com/nock/nock 's NockBack feature where we expected the "connection: close" header to be sent. We've updated the tests and everything is fine. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This backports #1736 fixing #1735 to the 2.x branch. Reasoning for why this is important is in this comment.
I believe this change is low-risk for applying against 2.x, for a few reasons:
Instead, we rely on the underlying http implementation in Node.js to handle this, as per the documentation at
https://nodejs.org/api/http.html#new-agentoptions
This fixes #1735 and likely replaces #1473
The original change introducing this provided no clear motivation for the override, and the implementation has since been changed to disable this header when an agent is provided, so I think there is sufficient evidence that removing this is the correct behaviour. af21ae6 7f68577
This commit is backported to the v2 branch from #1736 against v3.