Skip to content

Support Node.js http.ClientRequestArgs["headers"] array#1510

Merged
timostamm merged 3 commits intomainfrom
tstamm/Support-Node.js-http.ClientRequestArgsheaders]-array
Jun 3, 2025
Merged

Support Node.js http.ClientRequestArgs["headers"] array#1510
timostamm merged 3 commits intomainfrom
tstamm/Support-Node.js-http.ClientRequestArgsheaders]-array

Conversation

@timostamm
Copy link
Member

@timostamm timostamm commented Jun 3, 2025

With the latest @types/node, the headers property of http.ClientRequestArgs is changing from http.OutgoingHttpHeaders to http.OutgoingHttpHeaders | string[].

Because we're accepting http.ClientRequestArgs in client transport options, and pass them to our function webHeaderToNodeHeaders(), we have to support the string[] variant in this function.

This PR implements the support. It should fix CI failures in #1499.

timostamm added 3 commits June 3, 2025 16:41
Signed-off-by: Timo Stamm <ts@timostamm.de>
Signed-off-by: Timo Stamm <ts@timostamm.de>
@timostamm timostamm requested review from smaye81 and srikrsna-buf June 3, 2025 15:57
@timostamm timostamm merged commit 1fdc337 into main Jun 3, 2025
37 checks passed
@timostamm timostamm deleted the tstamm/Support-Node.js-http.ClientRequestArgsheaders]-array branch June 3, 2025 18:43
@timostamm timostamm mentioned this pull request Jul 25, 2025
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.

2 participants