MINOR: mux-fcgi: Make the capture of the path-info optional in pathinfo regex
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Feb 2020 15:55:52 +0000 (16:55 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 21 Feb 2020 10:20:13 +0000 (11:20 +0100)
commitf0d78d4e7d57ed7002a2656fcbb624bc909bda73
tree274ffbacb1e5450866e9a50f2276c7224eded317
parentde2554c62edf661e509d31d26545e90b9ada936b
MINOR: mux-fcgi: Make the capture of the path-info optional in pathinfo regex

Now, only one capture is mandatory in the path-info regex, the one matching the
script-name. The path-info capture is optional. Of couse, it must be defined to
fill the PATH_INFO parameter. But it is not mandatory. This way, it is possible
to get the script-name part from the path, excluding the path-info.

This patch is small enough to be backported to 2.1.

(cherry picked from commit 6c57f2da4326768c08603480f0ee2fa0a7f73231)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
doc/configuration.txt
src/mux_fcgi.c