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

Improve GET request handling: clients should not include content headers, servers should disallow a body #644

Merged
merged 3 commits into from
Dec 1, 2023

Conversation

jhump
Copy link
Member

@jhump jhump commented Nov 30, 2023

More stuff that @smaye81 found when developing conformance test cases, FTW!

The client should not include content headers ("content-type", "content-encoding", "content-length") since there is no body and everything is in the query string.

And the server should explicitly disallow a request body. It accepts content headers, but they are ignored and allowed as long as there is no body content.

@jhump jhump changed the title Fix GET request handling: clients should not include content headers, servers should disallow a body Improve GET request handling: clients should not include content headers, servers should disallow a body Nov 30, 2023
Copy link
Contributor

@jchadwick-buf jchadwick-buf left a comment

Choose a reason for hiding this comment

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

Nice! Also, I probably would be wise to implement a similar provision in Envoy, which is currently very permissive regarding protocol violations.

@akshayjshah akshayjshah merged commit 90ed22b into main Dec 1, 2023
9 checks passed
@akshayjshah akshayjshah deleted the jh/better-get branch December 1, 2023 13:11
@jhump jhump added the bug Something isn't working label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants