mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
Revert "MINOR: flt_http_comp: "compression" requires TCP or HTTP mode"
This reverts commit 225526dc16
since we
cannot perform the test during parsing as the effective proxy mode is
not yet known.
This commit is contained in:
parent
33e5c4055f
commit
c8948fb7ac
@ -789,12 +789,6 @@ parse_compression_options(char **args, int section, struct proxy *proxy,
|
|||||||
else
|
else
|
||||||
comp = proxy->comp;
|
comp = proxy->comp;
|
||||||
|
|
||||||
if (proxy->mode != PR_MODE_TCP && proxy->mode != PR_MODE_HTTP) {
|
|
||||||
memprintf(err, "parsing [%s:%d] : '%s' requires TCP or HTTP mode.",
|
|
||||||
file, line, args[0]);
|
|
||||||
ret = -1;
|
|
||||||
goto end;
|
|
||||||
}
|
|
||||||
if (strcmp(args[1], "algo") == 0 || strcmp(args[1], "algo-res") == 0) {
|
if (strcmp(args[1], "algo") == 0 || strcmp(args[1], "algo-res") == 0) {
|
||||||
struct comp_ctx *ctx;
|
struct comp_ctx *ctx;
|
||||||
int cur_arg = 2;
|
int cur_arg = 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user