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.
This commit is contained in:
Christopher Faulet 2019-05-23 11:14:21 +02:00
parent 55ae8a64e4
commit 256b69a82d

View File

@ -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);