]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: filters: Properly set the HTTP status code on analysis error
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Sep 2019 13:24:55 +0000 (15:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 10 Sep 2019 08:29:54 +0000 (10:29 +0200)
commite058f7359f3822beb8552f77a6d439cb053edb3f
treecdb24ec6432e15a4a72aa13cc0d1283de5074f49
parent6338a08c34bd1544ffcf91e2aafbf6e8ed9ffa58
BUG/MINOR: filters: Properly set the HTTP status code on analysis error

When a filter returns an error during the HTTP analysis, an error must be
returned if the status code is not already set. On the request path, an error
400 is returned. On the response path, an error 502 is returned. The status is
considered as unset if its value is not strictly positive.

If needed, this patch may be backported to all versions having filters (as far
as 1.7). Because nobody have never report any bug, the backport to 2.0 is
probably enough.
src/filters.c