Skip to content

http: call write callback even if there is no message body

Ensure that the callback of OutgoingMessage.prototype.write() is called when outgoingMessage._hasBody is false (HEAD method, 204 status code, etc.).

Refs: https://github.com/nodejs/node/pull/27709

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading