]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: h1: Don't support LF only at the end of chunks
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 26 Jan 2024 15:23:51 +0000 (16:23 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 30 Jan 2024 13:58:59 +0000 (14:58 +0100)
commit7b737da8258ebdd84e702a2d65cfd3c423f8e96d
treea7158cd854a2e27fa55ea0d7afd97335a6409d33
parent24a5e42db60a00e616e6a73041b7a562588b3d19
BUG/MINOR: h1: Don't support LF only at the end of chunks

When the message is chunked, all chunks must ends with a CRLF. However, on
old versions, to support bad client or server implementations, the LF only
was also accepted. Nowadays, it seems useless and can even be considered as
an issue. Just forbid LF only at the end of chunks, it seems reasonnable.

This patch must be backported to 2.9 and probably to all stable versions
because there is no reason to still support LF without CR in this case.
include/haproxy/h1.h
src/h1_htx.c