From: Christopher Faulet Date: Mon, 3 Dec 2018 21:43:41 +0000 (+0100) Subject: BUG/MINOR: flt_trace/compression: Use the right flag to add the HTX support X-Git-Tag: v1.9-dev10~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6e54095d0a564f2fc1525f2ced1eed2c6cfa59ab;p=thirdparty%2Fhaproxy.git BUG/MINOR: flt_trace/compression: Use the right flag to add the HTX support 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. --- diff --git a/src/flt_http_comp.c b/src/flt_http_comp.c index 35b0b72eef..5e0ee59a7f 100644 --- a/src/flt_http_comp.c +++ b/src/flt_http_comp.c @@ -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; } diff --git a/src/flt_trace.c b/src/flt_trace.c index 5f26b2deee..0dd655c6bd 100644 --- a/src/flt_trace.c +++ b/src/flt_trace.c @@ -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]",