Skip to content

Make kestrel not use the modified Http Protocol #18322

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

Merged
1 commit merged into from
Jan 14, 2020
Merged

Make kestrel not use the modified Http Protocol #18322

1 commit merged into from
Jan 14, 2020

Conversation

Tratcher
Copy link
Member

#17975 @JamesNK found that when he was implementing grpc-web and pretending the HTTP/1.1 requests were HTTP/2, Kestrel's response generation logic would break. Kestrel should not use the user-modifiable request protocol field when generating responses, it will confuse the client.

@Tratcher Tratcher added this to the 5.0.0-preview1 milestone Jan 13, 2020
@Tratcher Tratcher requested a review from analogrelay as a code owner January 13, 2020 21:42
@Tratcher Tratcher self-assigned this Jan 13, 2020
Copy link
Member

@JamesNK JamesNK left a comment

Choose a reason for hiding this comment

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

LGTM

IMO not back-porting is fine. There is an easy workaround to reset it back to the original value for anyone crazy enough to run into this bug.

@ghost
Copy link

ghost commented Jan 13, 2020

Hello @Tratcher!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 4 hours, a condition that will be fulfilled in about 2 hours 23 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 6dd3d6e into master Jan 14, 2020
@Tratcher Tratcher deleted the tratcher/protocol branch January 14, 2020 05:16
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Jun 6, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants