]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] http: trailing white spaces must also be trimmed after headers
authorWilly Tarreau <w@1wt.eu>
Thu, 1 Sep 2011 20:22:28 +0000 (22:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 4 Sep 2011 22:54:56 +0000 (00:54 +0200)
commit588bd4f8136ea4fdef9d7f0bc8c256ceab8f9d66
treeb14056dc0f8badcf2a32d59a52d8bbe4cddaf510
parent631f01c2f1c44eecd19e2b306a20b67fed3c301b
[BUG] http: trailing white spaces must also be trimmed after headers

Trailing spaces after headers were not trimmed, only the leading ones
were. An issue was detected today with a content-length value which
was padded with spaces and which was rejected. Recent updates to the
http-bis draft made it a lot more clear that such spaces must be ignored,
so this is what this patch does.

It should be backported to 1.4.
include/types/proto_http.h
src/proto_http.c