]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: extract content-length parsing from H2
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 8 Dec 2022 15:53:58 +0000 (16:53 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 14 Dec 2022 10:34:18 +0000 (11:34 +0100)
commit15f3cc4b389d1e92f7d537a2321ad027cf3b5a15
treef0c06bf21ec8f265b88ee327d01258917fb58d73
parent7b5a671fb8914aa2a2af113d69a80d5dc7ceb841
MINOR: http: extract content-length parsing from H2

Extract function h2_parse_cont_len_header() in the generic HTTP module.
This allows to reuse it for all HTTP/x parsers. The function is now
available as http_parse_cont_len_header().

Most notably, this will be reused in the next bugfix for the H3 parser.
This is necessary to check that content-length header match the length
of DATA frames.

Thus, it must be backported to 2.6.
include/haproxy/http.h
src/h2.c
src/http.c