]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: flt_trace/compression: Use the right flag to add the HTX support
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 3 Dec 2018 21:43:41 +0000 (22:43 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 4 Dec 2018 15:43:30 +0000 (16:43 +0100)
Of course, the flag FLT_CFG_FL_HTX must be used and not
STRM_FLT_FL_HAS_FILTERS. "Fortunately", these 2 flags have the same value, so
everything worked as expected.

src/flt_http_comp.c
src/flt_trace.c

index 35b0b72eef7d775a6736c662a64da5256ea2cc44..5e0ee59a7f6eeb8c2f7f9d5038f0b23f96d6094c 100644 (file)
@@ -79,7 +79,7 @@ static int http_compression_buffer_end(struct comp_state *st, struct stream *s,
 static int
 comp_flt_init(struct proxy *px, struct flt_conf *fconf)
 {
-       fconf->flags |= STRM_FLT_FL_HAS_FILTERS;
+       fconf->flags |= FLT_CFG_FL_HTX;
        return 0;
 }
 
index 5f26b2deeec96174cd9b3eaa11672349ccfe1383..0dd655c6bda0c262f52f1376d623acf9f7a9404a 100644 (file)
@@ -169,7 +169,7 @@ trace_init(struct proxy *px, struct flt_conf *fconf)
        else
                memprintf(&conf->name, "TRACE/%s", px->id);
 
-       fconf->flags |= STRM_FLT_FL_HAS_FILTERS;
+       fconf->flags |= FLT_CFG_FL_HTX;
        fconf->conf = conf;
 
        TRACE(conf, "filter initialized [read random=%s - fwd random=%s - hexdump=%s]",