POST /test HTTP/1.1 <------------- THIS IS MISSING
Host: localhost:51244
Accept-Encoding: gzip, deflate
content-type: multipart/form-data; boundary=--------------------------506525977784982220171228
Content-Length: 3693
Connection: close
@thecopy, thanks for reporting this. I've translated your reproduction repo to a test case and fixed the issue in @mswjs/interceptors. Will propagate to MSW soon.
Prerequisites
Environment check
msw
versionNode.js version
v20.18.0
Reproduction repository
https://github.com/thecopy/msw-bug
Reproduction steps
npm install
node index.cjs
If you comment line
mwsServer.listen(...)
, it works. OR If you remove the attached file, it works.If i downgrade to
msw@2.4.4
it works.Current behavior
Invalid HTTP request is generated
HTTP request:
Resulting in error from
node:http
:Expected behavior
HTTP request: