mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
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.
This commit is contained in:
parent
577fa44691
commit
edb8f2bb60
@ -2482,7 +2482,7 @@ int http_apply_redirect_rule(struct redirect_rule *rule, struct stream *s, struc
|
||||
/* look up the '?' */
|
||||
do {
|
||||
if (ptr == end)
|
||||
return 0;
|
||||
break;
|
||||
} while (*ptr++ != '?');
|
||||
|
||||
if (ptr == end)
|
||||
|
Loading…
Reference in New Issue
Block a user