]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: lua: Remove the flag HLUA_TXN_HTTP_RDY
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 25 Feb 2020 08:45:51 +0000 (09:45 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Mar 2020 13:13:00 +0000 (14:13 +0100)
commitd8f0e073ddf25ba51fb2fa8e5cf10ec297bd9d5d
tree1d2234b0449b5aac0310c4f12aecde5e4ec0d439
parentd31c7b322ce3c33d777fd330434869031fb8aacd
MINOR: lua: Remove the flag HLUA_TXN_HTTP_RDY

This flag was used in some internal functions to be sure the current stream is
able to handle HTTP content. It was introduced when the legacy HTTP code was
still there. Now, It is possible to rely on stream's flags to be sure we have an
HTX stream.

So the flag HLUA_TXN_HTTP_RDY can be removed. Everywhere it was tested, it is
replaced by a call to the IS_HTX_STRM() macro.

This patch is mandatory to allow the support of the filters written in lua.
include/types/hlua.h
src/hlua.c