]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: fcgi-app: Use http_msg flags to know if C-L header can be added
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 Apr 2022 13:26:24 +0000 (15:26 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 Apr 2022 14:11:55 +0000 (16:11 +0200)
commit32af9a78303cc798eaf1dc506552862cc197e561
tree7b8085ec54945ecb012dc5ac06bbbb54a68440c9
parentf7ff9cbfe123131d9ffa215d5cfca9a5357d1b6d
BUG/MEDIUM: fcgi-app: Use http_msg flags to know if C-L header can be added

Instead of relying on the HTX start-line flags, it is better to rely on
http_msg flags to know if a content-length header can be added or not. In
addition, if the header is added, HTTP_MSGF_CNT_LEN flag must be added.

Because of this bug, an invalid message can be emitted when the response is
compressed because it may contain C-L and a T-E headers.

This patch should fix the issue #1660. It must be backported as far as 2.2.
src/fcgi-app.c