MINOR: http-htx: Add an option to eval query-string when the path is replaced
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 31 Aug 2020 14:11:57 +0000 (16:11 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 1 Sep 2020 12:37:56 +0000 (14:37 +0200)
commite2d1d0c9bceae58155d15f47252a8e47517f3d93
tree8693185f7fe87d832e7f7c5aa09a68dfae87fbe3
parentdc938ccb53a9ac5a0c6ba694973204412c086003
MINOR: http-htx: Add an option to eval query-string when the path is replaced

The http_replace_req_path() function now takes a third argument to evaluate the
query-string as part of the path or to preserve it. If <with_qs> is set, the
query-string is replaced with the path. Otherwise, only the path is replaced.

This patch is mandatory to fix issue #829. The next commit depends on it. So be
carefull during backports.

(cherry picked from commit b8ce505c6f0b202ccdb8e512fed0888652ed5b12)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 0ba7161614d5641a865165b1159a8133c910e21d)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/proto/http_htx.h
src/http_ana.c
src/http_htx.c