Skip to content

http2: Fix "ERR_HTTP2_INVALID_CONNECTION_HEADERS" error when adding "connection' into header

lib: http2 compatibility connection header

When adding the connection header into http2 response, an ERR_HTTP2_INVALID_CONNECTION_HEADERS error is thrown.

This PR is ignoring the connection header and disable the ERR_HTTP2_INVALID_CONNECTION_HEADERS error. A new warning log is emitted on the compatibility.

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

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading