arturobernalg opened a new pull request, #1208: URL: https://github.com/apache/tomcat/pull/1208
RFC 9113, section 8.2.2 does not allow `Connection`, `Proxy-Connection`, `Keep-Alive`, `Transfer-Encoding` or `Upgrade` in an HTTP/2 message. Requests are already checked, but an application that set one of these header fields on a response had it sent unchanged, and clients such as curl reject the response. This removes them in `StreamProcessor.prepareHeaders()` and moves the list to `Constants` so the request check and the response code share it. Tested with a running Tomcat and curl over HTTP/2: without the change curl fails with `Invalid HTTP header field was received ... [connection]`, with the change the response is received. HTTP/1.1 is not affected. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
