-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove
proxy-connection
header from outgoing HTTP/2 messages (#2138)
Motivation: Quote from the spec (https://datatracker.ietf.org/doc/html/rfc7540#section-8.1.2.2): This means that an intermediary transforming an HTTP/1.x message to HTTP/2 will need to remove any header fields nominated by the Connection header field, along with the Connection header field itself. Such intermediaries SHOULD also remove other connection- specific header fields, such as Keep-Alive, Proxy-Connection, Transfer-Encoding, and Upgrade, even if they are not nominated by the Connection header field. `H2ToStH1Utils.h1HeadersToH2Headers()` removes all described headers except `proxy-connection`. Modifications: - Remove `proxy-connection` header from the outgoing HTTP/2 messages; - Test that HTTP/2 client and server remove prohibited headers; Result: Outgoing HTTP/2 messages never contain prohibited `proxy-connection` header.
- Loading branch information
1 parent
a93fc9b
commit dd94aea
Showing
2 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters