Skip to content

http: add info to invalid header character errors

Update error message thrown when setting header to a value that contains and invalid character to include the invalid character and its index. Fixes: https://github.com/nodejs/node/issues/28797

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

/cc @ryzokuken @gengjiawen

Merge request reports

Loading