Skip to content

http: don't write empty data on req/res end()

When calling OutgoingMessage.end() with empty data argument, avoid writing to the socket unless there's still pending data to be sent.

Fixes: https://github.com/nodejs/node/issues/41062

Merge request reports

Loading