Open Issues Need Help
View All on GitHubAI Summary: This GitHub issue reports a regression in `@mswjs/http-middleware` (v0.10.2) where it prematurely consumes the request body stream when a POST or PUT handler is matched. This behavior, which did not occur in v0.10.1, prevents subsequent Express middleware from accessing the request body, breaking the expected middleware chain. The user provides a simple test case demonstrating that the request stream is no longer readable after `http-middleware` has processed it.
Complexity:
3/5
help wanted needs:discussion
Spawn an HTTP server from your request handlers or apply them to an existing server using a middleware.
TypeScript
#express#handler#http#middleware#msw#request#server