]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http: update the macro IS_HTX_STRM() to check the stream flag SF_HTX
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Apr 2019 08:08:59 +0000 (10:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Apr 2019 20:06:53 +0000 (22:06 +0200)
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

index eecd9a77150f44fb43a24a5cd177f847c60fe061..ef028cd6001dd4b2b62a5ba29472bc7e1651e059 100644 (file)
@@ -29,7 +29,7 @@
 #include <proto/channel.h>
 #include <proto/stream.h>
 
-#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;