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, 14 Feb 2020 17:31:29 +0000 (18:31 +0100)
commit6c57f2da4326768c08603480f0ee2fa0a7f73231
treef073e60c47cbb91fbe6f9df09b8e4ad44e66e51c
parent88a2f0304c2e7bda7a62cd93597cf02bb6ada4c7
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.
doc/configuration.txt
src/mux_fcgi.c