BUG/MINOR: fcgi-app: prevent 'use-fcgi-app' in default section
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 12 Jan 2023 14:44:22 +0000 (15:44 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 27 Jan 2023 14:18:59 +0000 (15:18 +0100)
commitd49a580fdaebbd185a9ee6ede072fc13bec5d5bf
tree33ad574dbac3bcf7b001f7e2124520a56a330424
parentf3a2ae7c6354bfbb1054a54d46658cf4410fd4bb
BUG/MINOR: fcgi-app: prevent 'use-fcgi-app' in default section

Despite the doc saying that 'use-fcgi-app' keyword may only be used in backend
or listen section, we forgot to prevent its usage in default section.

This is wrong because fcgi relies on a filter, and filters cannot be defined in
a default section.

Making sure such usage reports an error to the user and complies with the doc.

This could be backported up to 2.2.
src/fcgi-app.c