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

grpc-js: Connect with https scheme when using TLS #2895

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

murgatroid99
Copy link
Member

This fixes a bug caught by interop tests that caused Google Front End servers to reject requests made by this library over TLS. Our best guess at a proximate cause for this error is that the request has an unexpected :scheme header value of http instead of https because that is the scheme used in the URL passed to http2.connect.

In order to consistently use the correct scheme, SecureConnector#connect now annotates the result with an additional field indicating whether the connection is secure, and this value determines the scheme.

@murgatroid99 murgatroid99 merged commit d2462ca into grpc:master Jan 30, 2025
9 of 10 checks passed
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.

1 participant