Skip to content

http: reject HTTP major version switch mid connection - #13421

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/http-switch
Closed

http: reject HTTP major version switch mid connection#13421
bagder wants to merge 1 commit into
masterfrom
bagder/http-switch

Conversation

@bagder

@bagder bagder commented Apr 19, 2024

Copy link
Copy Markdown
Member

A connection that has seen a HTTP major version now refuses any other major HTTP version in future responses. Previously, a HTTP/1.x connection would just silently accept HTTP/2 or HTTP/3 in the status lines as long as it had support for those built-in. It would then just lead to confusion and badness.

Indirectly Spotted by CodeSonar which identified a duplicate assignment in this function.

Add test 471 to verify

A connection that has seen a HTTP major version now refuses any other
major HTTP version in future responses. Previously, a HTTP/1.x
connection would just silently accept HTTP/2 or HTTP/3 in the status
lines as long as it had support for those built-in. It would then just
lead to confusion and badness.

Indirectly Spotted by CodeSonar which identified a duplicate assignment
in this function.

Add test 471 to verify
@bagder bagder added the HTTP label Apr 19, 2024
@github-actions github-actions Bot added the tests label Apr 19, 2024
@bagder bagder closed this in a032e97 Apr 19, 2024
@bagder
bagder deleted the bagder/http-switch branch April 19, 2024 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants