]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-htx: Don't make http_find_header() fail if the value is empty
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 29 Nov 2019 10:18:45 +0000 (11:18 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 29 Nov 2019 10:48:15 +0000 (11:48 +0100)
commitf3ad62996fa3bab907429ce25a2ada10186b4242
treebec04c0f5871bade5561782ba093bc07ee7bdf82
parentbe8a387e9399d0848af03401c8df80cb6ddaecfc
BUG/MINOR: http-htx: Don't make http_find_header() fail if the value is empty

http_find_header() is used to find the next occurrence of a header matching on
its name. When found, the matching header is returned with the corresponding
value. This value may be empty. Unfortunatly, because of a bug, an empty value
make the function fail.

This patch must be backported to 2.1, 2.0 and 1.9.
src/http_htx.c