Revert "BUG/MINOR: http-rules: Replace path and query-string in "replace-path" action"
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Sep 2020 09:10:38 +0000 (11:10 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Sep 2020 15:29:00 +0000 (17:29 +0200)
commit1fa0cc18e1c6dd5460492128b5b400d808f3c823
tree421b615479e136a98a362c3b37f9d08578618151
parent398da62c38014c76006571e0caa52a3799f41815
Revert "BUG/MINOR: http-rules: Replace path and query-string in "replace-path" action"

This reverts commit 4b9c0d1fc08388bf44c6ebbd88f786032dd010fc.

Actually, the "replace-path" action is ambiguous. "set-path" action preserves
the query-string. The "path" sample fetch does not contain the query-string. But
"replace-path" action is documented to handle the query-string. It is probably
not the expected behavior. So instead of fixing the code, we will fix the
documentation to make "replace-path" action consistent with other parts of the
code. In addition actions and sample fetches to handle the path with the
query-string will be added.

If the commit above is ever backported, this one must be as well.
src/http_act.c
src/http_ana.c