]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: tarpit: fix condition to return the HTTP 500 message
authorWilly Tarreau <w@1wt.eu>
Mon, 23 Jul 2012 08:55:43 +0000 (10:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Jul 2012 05:55:31 +0000 (07:55 +0200)
commitdae2a8a5a542e8a166b7bbb2164c666334c9fcea
treedace8d6afef709f5ca1ef5fa4e13b41e72fd7183
parent65c1796c4aeb54fc10430ba89f15141702f42eee
BUG/MINOR: tarpit: fix condition to return the HTTP 500 message

Commit fa7e1025 (1.3.16-rc1) introduced a minor bug by comparing req->flags
with BF_READ_ERROR instead of checking for the bit. The result is that the
error message is always returned even in case of client error. This has no
real impact but this must be fixed.

It may be backported to 1.4 and 1.3.
src/proto_http.c