mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-02 15:49:39 -04:00
BUG/MINOR: http_ana: make sure redirect flags don't have overlapping bits
commitc87e46881("MINOR: http-rules: Add a flag on redirect rules to know the rule direction") introduced a new flag for redirect rules, but its value has bits in common with REDIRECT_FLAG_DROP_QS, which makes us enter this code path in http_apply_redirect_rule(), which will then drop the query string. To fix this, just give REDIRECT_FLAG_FROM_REQ its own unique value. This must be backported wherec87e468816is backported. This should fix issue 521.
This commit is contained in:
parent
77a8b63ddc
commit
967d3cc105
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ enum {
|
|||
REDIRECT_FLAG_NONE = 0,
|
||||
REDIRECT_FLAG_DROP_QS = 1, /* drop query string */
|
||||
REDIRECT_FLAG_APPEND_SLASH = 2, /* append a slash if missing at the end */
|
||||
REDIRECT_FLAG_FROM_REQ = 3, /* redirect rule on the request path */
|
||||
REDIRECT_FLAG_FROM_REQ = 4, /* redirect rule on the request path */
|
||||
};
|
||||
|
||||
/* Redirect types (location, prefix, extended ) */
|
||||
|
|
|
|||
Loading…
Reference in a new issue