]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: h1: Add an option to sanitize connection headers during parsing
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 29 Mar 2019 14:03:13 +0000 (15:03 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Apr 2019 20:06:53 +0000 (22:06 +0200)
commita51ebb7f56b162d995154146fb1d0be369d95f8b
treee5464dd64a3c85fc3b14de0c9287e2499e378223
parentb829f4c7261779199153f19a0257332f365217b5
MEDIUM: h1: Add an option to sanitize connection headers during parsing

The flag H1_MF_CLEAN_CONN_HDR has been added to let the H1 parser sanitize
connection headers. It means it will remove all "close" and "keep-alive" values
during the parsing. One noticeable effect is that connection headers may be
unfolded. In practice, this is not a problem because it is not frequent to have
multiple values for the connection headers.

If this flag is set, during the parsing The function
h1_parse_next_connection_header() is called in a loop instead of
h1_parse_conection_header().

No need to backport this patch
include/common/h1.h
src/h1.c