Skip to content

[backport-v8.x] http: add rawPacket in err of `clientError` event

The rawPacket is the current buffer that just parsed. Adding this buffer to the error object of clientError event is to make it possible that developers can log the broken packet.

PR-URL: https://github.com/nodejs/node/pull/17672 Reviewed-By: Anna Henningsen anna@addaleax.net Reviewed-By: Ben Noordhuis info@bnoordhuis.nl Reviewed-By: James M Snell jasnell@gmail.com

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

http

Merge request reports

Loading