Skip to content

Conversation

@RobinVdBroeck
Copy link

This PR updates the MockHttpSocket to correctly set the http version passed to ServerResponse. This fixes a bug where mocked responses with the Connection: keep-alive header never completed before. For that, I've added some regression tests.

I found it kinda hard to wrap my head around the architecture of mswjs/interceptors, so please let me know if I did something stupid.

This fixes a bug in nock: nock/nock#2918

@RobinVdBroeck RobinVdBroeck changed the title Fix: Correctly pass http version to the HTTP parser in node Fix: Correctly pass http version to the ServerResponse in node Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant