]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-ana: Reset response flags when 1xx messages are handled
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Sep 2019 13:23:54 +0000 (15:23 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 4 Sep 2019 08:29:55 +0000 (10:29 +0200)
commit3499f62b59eb9ce0adeb17e6ceffc57a43893ae9
tree9eb85a4f2237110cb71a6b64317c0ed5dabf4655
parent78891c7e713a3dcb3afad1bfcdedd00075572ed6
BUG/MINOR: http-ana: Reset response flags when 1xx messages are handled

Otherwise, the following final response could inherit of some of these
flags. For instance, because informational responses have no body, the flag
HTTP_MSGF_BODYLESS is set for 1xx messages. If it is not reset, this flag will
be kept for the final response.

One of visible effect of this bug concerns the HTTP compression. When the final
response is preceded by an 1xx message, the compression is not performed. This
was reported in github issue #229.

This patch must be backported to 2.0 and 1.9. Note that the file http_ana.c does
not exist for these branches, the patch must be applied on proto_htx.c instead.
src/http_ana.c