]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: proto_htx: Don't add EOM on 1xx informational messages
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 26 Jun 2019 12:23:54 +0000 (14:23 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 26 Jun 2019 13:23:06 +0000 (15:23 +0200)
commit1d5ec0944f3a9204a56ca5978a062f27a6f0d98d
treee40acdfee0f0088eaaee06071d383b51d6c05d2e
parent2164800c1b9382d154e9e2d0c500e77b89efee77
BUG/MEDIUM: proto_htx: Don't add EOM on 1xx informational messages

Since the commit b75b5eaf ("MEDIUM: htx: 1xx messages are now part of the final
reponses"), these messages are part of the response and should not contain
EOM. This block is skipped during responses parsing, but analyzers still add it
for "100-Continue" and "103-Eraly-Hints". It can also be added for error files
with 1xx status code.

Now, when HAProxy generate such transitional responses, it does not emit EOM
blocks. And informational messages are now forbidden in error files.

This patch must be backported to 2.0.
src/http_htx.c
src/proto_htx.c