projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33e5c40
)
Revert "MINOR: flt_http_comp: "compression" requires TCP or HTTP mode"
author
Aurelien DARRAGON
<adarragon@haproxy.com>
Fri, 17 Nov 2023 17:05:20 +0000
(18:05 +0100)
committer
Willy Tarreau
<w@1wt.eu>
Sat, 18 Nov 2023 10:16:21 +0000
(11:16 +0100)
This reverts commit
225526dc16949ccbc83f59378d644eb6bda7681c
since we
cannot perform the test during parsing as the effective proxy mode is
not yet known.
src/flt_http_comp.c
patch
|
blob
|
history
diff --git
a/src/flt_http_comp.c
b/src/flt_http_comp.c
index
becfa52
..
d34b56a
100644
(file)
--- a/
src/flt_http_comp.c
+++ b/
src/flt_http_comp.c
@@
-789,12
+789,6
@@
parse_compression_options(char **args, int section, struct proxy *proxy,
else
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) {
struct comp_ctx *ctx;
int cur_arg = 2;