New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: send Buffer with length #2232
Conversation
The failing test (write callback is not called if the provided chunk is an empty buffer) could be fixed with changing:
|
Everything merged into current main publishes to the current version, which is 13. We only have
can you push the change? |
I updated the unit test and also added the test which reproduces the issue |
@all-contributors please add @Beretta1979 for code and test |
I've put up a pull request to add @Beretta1979! 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great PR, thank you 💐 I confirmed that the your test failed before adding the fix
🎉 This PR is included in version 13.1.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thanks! And thumbs up for this nice easy to use package! |
#A buffer with length 0 should still be sent
See https://github.com/nodejs/node/blob/3f11666dc7e3a6d1221bde5145929dc72edc142e/lib/_http_outgoing.js#L788
fixes #2231
I wanted to target the 13.x branch, but that one was non existent ...