Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix native fetch error in server-test on node 18 (#1341)
Summary: Fixing node 18 fetch error due to attempt to set the "Connection" header which is not supported on that version of node (nodejs/undici#1305). However "Connection" is set to "close" by default in node 18 anyway comparing with later version so we just don't touch it on that version. Pull Request resolved: #1341 Test Plan: `yarn jest packages/metro/src/integration_tests/__tests__/server-test.js` Tested ad hoc on Node JS versions: * `18.0.0` * `18.14.1` * `18.14.2` Plus the versions in the github actions Reviewed By: robhogan Differential Revision: D62026647 Pulled By: vzaidman fbshipit-source-id: fe99cfd0a7cdedc0119b1c68c38125fe464b4742
- Loading branch information