]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: proxy: Remove dead code when parsing "http-restrict-req-hdr-names" option
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 May 2022 12:46:15 +0000 (14:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 May 2022 14:13:22 +0000 (16:13 +0200)
commitbc684acae70d21c4ece4a583147dfcca5064688e
tree86e86814489624c88e4f23a04eefb8d4371dcf29
parent2d9cc85b748ef32cca45d749c504bf73044063c0
CLEANUP: proxy: Remove dead code when parsing "http-restrict-req-hdr-names" option

negation or default modifiers are not supported for this option. However,
this was already tested earlier in cfg_parse_listen() function. Thus, when
"http-restrict-req-hdr-names" option is parsed, the keyword modifier is
always equal to KWM_STD. It is useless to test it again at this place.

This patch should solve the issue #1702.
src/cfgparse-listen.c