Skip to content

fix: normalize HTTP/2 request header casing#5290

Open
raashish1601 wants to merge 1 commit into
nodejs:mainfrom
raashish1601:codex/5175-h2-duplicate-content-type
Open

fix: normalize HTTP/2 request header casing#5290
raashish1601 wants to merge 1 commit into
nodejs:mainfrom
raashish1601:codex/5175-h2-duplicate-content-type

Conversation

@raashish1601
Copy link
Copy Markdown

Summary

Normalize outgoing HTTP/2 request header names before building the header object and keep a single content-type value when callers provide the same header with different casing.

Fixes #5175.

Validation

node --test --test-name-pattern "duplicated single-value" test\http2-body.js
node --test test\http2-body.js
npm run lint -- lib/dispatcher/client-h2.js test/http2-body.js
git commit pre-hook repo-wide lint is blocked by an unrelated baseline no-undef in test/parser-issues.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

undici 8.x: Header field "content-type" must only have a single value

1 participant