Bypassed POST request yields invalid on-the-wire HTTP request (missing starting-line) with form-data file attachment #2309
Labels
bug
Something isn't working
needs:triage
Issues that have not been investigated yet.
scope:node
Related to MSW running in Node
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
[email protected]
it works.Current behavior
Invalid HTTP request is generated
HTTP request:
Resulting in error from
node:http
:Expected behavior
HTTP request:
The text was updated successfully, but these errors were encountered: