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

fix: parse body when unsupported HTTP/2 upgrade is requested #783

Merged
merged 1 commit into from Mar 17, 2024

Conversation

t-cadet
Copy link

@t-cadet t-cadet commented Mar 15, 2024

According to the RFC https://datatracker.ietf.org/doc/html/rfc7540#section-3.2 "A server that does not support HTTP/2 can respond to the request as though the Upgrade header field were absent"

Crow does not support HTTP/2 at the moment, however when an upgrade is requested the body of the request is not parsed.
This commit fixes that.

See the tests for a request that triggers this behavior.

Crow does not support HTTP/2 at the moment.
According to the RFC https://datatracker.ietf.org/doc/html/rfc7540#section-3.2
"A server that does not support HTTP/2 can respond to the request as though the Upgrade header field were absent"
@gittiver gittiver merged commit d0f1991 into CrowCpp:master Mar 17, 2024
6 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.

None yet

3 participants