MINOR: http: add a new "replace-path" action
authorWilly Tarreau <w@1wt.eu>
Tue, 17 Dec 2019 05:52:51 +0000 (06:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Dec 2019 08:25:34 +0000 (09:25 +0100)
commita30e35ae9993696d5a2cc5b8db1d16702dd43fd4
treeef14120c72e4b30a4b13f35f03968a10ea85b1f8
parent9d7b7b6bd80d84942f384e8352d7cc624e26b02a
MINOR: http: add a new "replace-path" action

This action is very similar to "replace-uri" except that it only acts on the
path component. This is assumed to better match users' expectations when they
used to rely on "replace-uri" in HTTP/1 because mostly origin forms were used
in H1 while mostly absolute URI form is used in H2, and their rules very often
start with a '/', and as such do not match.

It could help users to get this backported to 2.0 and 2.1.

(cherry picked from commit 262c3f1a00a901bfe4a3d6785155e1c02cf8039a)
Signed-off-by: Willy Tarreau <w@1wt.eu>
doc/configuration.txt
src/cfgparse-listen.c
src/http_act.c