]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http: fix body processing for the stats applet
authorWilly Tarreau <w@1wt.eu>
Thu, 28 May 2015 23:09:15 +0000 (01:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 May 2015 23:12:38 +0000 (01:12 +0200)
commitb8cdf52da05a37994596191a459e396c28c5a8e0
tree8b01af39c6a8284b4aac57df4e28ac15aaa4c414
parentdf1425ad454d66dea94d0387f1e928a1211d325d
BUG/MEDIUM: http: fix body processing for the stats applet

Commit 9fbe18e ("MEDIUM: http: add a new option http-buffer-request")
introduced a regression due to a misplaced check causing the admin
mode of the HTTP stats not to work anymore.

This patch tried to ensure that when we need a request body for the
stats applet, and we have already waited for this body, we don't wait
for it again, but the condition was applied too early causing a
disabling of the entire processing the body, and based on the wrong
HTTP state (MSG_BODY) resulting in the test never matching.

Thanks to Chad Lavoie for reporting the problem.

This bug is 1.6-only, no backport is needed.
src/proto_http.c