From 256b69a82d9e096a5d67c6ae3685abd50f24193f Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 23 May 2019 11:14:21 +0200 Subject: [PATCH] BUG/MINOR: lua: Set right direction and flags on new HTTP objects When a LUA HTTP object is created using the current TXN object, it is important to also set the right direction and flags, using ones from the TXN object. This patch may be backported to all supported branches with the lua support. But, it seems to have no impact for now. --- src/hlua.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hlua.c b/src/hlua.c index a7fd52baa..f8e481c27 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -5170,6 +5170,8 @@ static int hlua_http_new(lua_State *L, struct hlua_txn *txn) htxn->s = txn->s; htxn->p = txn->p; + htxn->dir = txn->dir; + htxn->flags = txn->flags; /* Pop a class stream metatable and affect it to the table. */ lua_rawgeti(L, LUA_REGISTRYINDEX, class_http_ref);