Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect headers from transport option nodeOptions.headers #1219

Conversation

timostamm
Copy link
Member

Fixes #1158

}
}
return o;
}

function appendWebHeader(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic needed to change a bit, now that we're joining two Node.js headers objects. We append headers, and - for example - need to convert an existing number header to a string to add a value, since the headers object allows singular numbers, but only string arrays.

@srikrsna-buf srikrsna-buf changed the title Pass through headers from transport option nodeOptions.headers Pass through headers from transport option nodeOptions.headers Sep 9, 2024
@srikrsna-buf srikrsna-buf changed the title Pass through headers from transport option nodeOptions.headers Respect headers from transport option nodeOptions.headers Sep 9, 2024
@timostamm timostamm merged commit ed63cee into main Sep 9, 2024
47 of 49 checks passed
@timostamm timostamm deleted the tstamm/Pass-through-headers-from-transport-option-nodeOptions.headers branch September 9, 2024 15:15
@timostamm timostamm mentioned this pull request Sep 11, 2024
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.

Headers in NodeTransportOptions are not being passed to the request when using createConnectTransport()
2 participants