]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-ana: Properly handle keep-query redirect option if no QS
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Jun 2025 09:19:50 +0000 (11:19 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Jun 2025 09:27:20 +0000 (11:27 +0200)
commitedb8f2bb60d11cc92895e6cf1cb05e5b6cdc51d7
tree99b13cbaded860b421ae29a1f6a4945706714f55
parent577fa446914bd140d080005c3d5ab5fb97552f56
BUG/MINOR: http-ana: Properly handle keep-query redirect option if no QS

The keep-query redirect option must do nothing is there is no query-string.
However, there is a bug. When there is no QS, an error is returned, leading
to return a 500-internal-error to the client.

To fix the bug, instead of returning 0 when there is no QS, we just skip the
QS processing.

This patch should fix the issue #3005. It must be backported as far as 3.1.
src/http_ana.c