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

Correctly set the authority to the host rather than scheme #637

Merged
merged 1 commit into from
Nov 26, 2019

Conversation

adolfo
Copy link
Contributor

@adolfo adolfo commented Nov 20, 2019

Per the HTTP2 spec, the :authority header should include the authority portion of the URI.

https://http2.github.io/http2-spec/#HttpRequest
https://tools.ietf.org/html/rfc3986#section-3.2

Certain proxies that read the host from the authority field fail to forward the RPC to the correct service. This change sets the authority field to the target host.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 20, 2019

CLA Check
The committers are authorized under a signed CLA.

@glbrntt glbrntt self-requested a review November 26, 2019 11:28
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

Ah great catch, thank you so much!

@glbrntt glbrntt merged commit 13a4fde into grpc:nio Nov 26, 2019
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