ok2c commented on PR #683: URL: https://github.com/apache/httpcomponents-core/pull/683#issuecomment-5058825613
> Shouldn't the content length also be validated when trailer HEADERS terminate the stream? [RFC 9113 §8.1](https://www.rfc-editor.org/rfc/rfc9113.html#section-8.1) states that trailer fields are carried in a field block that terminates the stream, while [§8.1.1](https://www.rfc-editor.org/rfc/rfc9113.html#section-8.1.1) requires Content-Length to equal the sum of the DATA frame payload lengths. @arturobernalg I honestly do not know. Do you think it should? If you do, I will update the change-set. As far as I can tell, in practical terms this check matters for message head only due to a possible H2 to HTTP/1.1 translation by an intermediary. -- 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]
