]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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 08:55:14 +0000 (10:55 +0200)
commitb8ce505c6f0b202ccdb8e512fed0888652ed5b12
tree8a9e74be17f143d988bcadce6ceb5737b2913310
parent7d518454bb501659e8b13f38c22d216f5485be34
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.
include/haproxy/http_htx.h
src/http_ana.c
src/http_htx.c