arturobernalg opened a new pull request, #1143: URL: https://github.com/apache/tomcat/pull/1143
RFC 9110, section 5.6.1.2 states that a recipient MUST parse and ignore a reasonable number of empty list elements and MUST accept lists matching `#element => [ element ] *( OWS "," OWS [ element ] )`. The Upgrade header is defined as `#protocol` in section 7.8, but `Upgrade.parse` rejected the whole header for values such as `h2c,, websocket`, `, websocket` or `h2c, websocket,`. Ignore the empty elements. TestUpgrade has five new cases that fail without the change and pass with it. The other tests in the parser package and TestRequest still pass. -- 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]
