From 209829f159f9d890e1826e3e3a81c19748e691f4 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 3 Apr 2019 10:08:59 +0200 Subject: [PATCH] MINOR: http: update the macro IS_HTX_STRM() to check the stream flag SF_HTX Instead of matching on the frontend options, we now check if the flag SF_HTX is set or not on the stream to know if it is an HTX stream or not. --- include/proto/proto_http.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/proto/proto_http.h b/include/proto/proto_http.h index eecd9a771..ef028cd60 100644 --- a/include/proto/proto_http.h +++ b/include/proto/proto_http.h @@ -29,7 +29,7 @@ #include #include -#define IS_HTX_STRM(strm) (strm_fe(strm)->options2 & PR_O2_USE_HTX) +#define IS_HTX_STRM(strm) ((strm)->flags & SF_HTX) #define IS_HTX_SMP(smp) ((smp)->strm && IS_HTX_STRM((smp)->strm)) extern struct pool_head *pool_head_uniqueid;