]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: h1: Reject empty Transfer-encoding header
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 9 Jul 2024 05:55:58 +0000 (07:55 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 10 Jul 2024 08:52:20 +0000 (10:52 +0200)
commit4a2dd6f3777959187565edd79475091e155e2161
tree7fe97fb4bab0784d18d1d45a7db840f2599ca6dc
parent428451fe96d9ad9ba8ef0f0669e145a37d97304d
BUG/MEDIUM: h1: Reject empty Transfer-encoding header

The Transfer-Encoding headers list the transfer coding that have been
applied to the content in order to form the message body. It is a list of
tokens. And as specified by RFC 9110, a token cannot be empty. When several
coding names are specify as a comma-separated value, this case is properly
handled and an error is triggered. However, an empty header value will just
be skipped and no error is triggered. This could be an issue with some buggy
servers.

Now, empty Transfer-Encoding header are rejected too.

This patch must be backported as far as 2.6.
src/h1.c