Skip custom Connection: headers when doing HTTP/2 #401
Labels
Comments
jgsogo
added a commit
to jgsogo/curl
that referenced
this issue
Oct 19, 2015
RFC 7540 section 8.1.2.2 states: "An endpoint MUST NOT generate an HTTP/2 message containing connection-specific header fields; any message containing connection-specific header fields MUST be treated as malformed" Closes curl#401
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
An application may opt to use custom Connection: headers with libcurl, but if the server supports HTTP/2 those headers are not allowed.
RFC 7540 section 8.1.2.2 states: "An endpoint MUST NOT generate an HTTP/2 message containing connection-specific header fields; any message containing connection-specific header fields MUST be treated as malformed"
So, to let applications keep working with HTTP/1.1 or HTTP/2, libcurl must filter out the Connection: headers for h2.
The text was updated successfully, but these errors were encountered: