diff --git a/src/hlua.c b/src/hlua.c index b5465e8b8..f34f7b6a0 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -5058,7 +5058,7 @@ __LJMP static int hlua_applet_http_getline_yield(lua_State *L, int status, lua_K /* The message was fully consumed and no more data are expected * (EOM flag set). */ - if (htx_is_empty(htx) && (htx->flags & HTX_FL_EOM)) + if (htx_is_empty(htx) && (req->flags & CF_EOI)) stop = 1; htx_to_buf(htx, &req->buf); @@ -5150,7 +5150,7 @@ __LJMP static int hlua_applet_http_recv_yield(lua_State *L, int status, lua_KCon /* The message was fully consumed and no more data are expected * (EOM flag set). */ - if (htx_is_empty(htx) && (htx->flags & HTX_FL_EOM)) + if (htx_is_empty(htx) && (req->flags & CF_EOI)) len = 0; htx_to_buf(htx, &req->buf);