Revert "MINOR: cfgparse-listen: "http-send-name-header" requires TCP or HTTP mode"

This reverts commit d354947365 since we
cannot perform the test during parsing as the proxy mode is not yet
known.
This commit is contained in:
Aurelien DARRAGON 2023-11-17 18:02:03 +01:00 committed by Willy Tarreau
parent c90d7dc46b
commit a0a7dd1ee7

View File

@ -1322,13 +1322,6 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
if (warnifnotcap(curproxy, PR_CAP_BE, file, linenum, args[0], NULL))
err_code |= ERR_WARN;
if (curproxy->mode != PR_MODE_TCP && curproxy->mode != PR_MODE_HTTP) {
ha_alert("parsing [%s:%d] : '%s' requires TCP or HTTP mode.\n",
file, linenum, args[0]);
err_code |= ERR_ALERT | ERR_FATAL;
goto out;
}
if (!*args[1]) {
ha_alert("parsing [%s:%d] : '%s' requires a header string.\n",
file, linenum, args[0]);