Skip to content

Commit 3b4a963

Browse files
committed
bugfix: ngx.flush(true) calls right after ngx.send_header() was broken due to the previous commit.
1 parent 547c961 commit 3b4a963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_output.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ ngx_http_lua_ngx_flush(lua_State *L)
520520

521521
#if 1
522522
if ((!r->header_sent && !ctx->header_sent)
523-
|| !ctx->seen_body_data)
523+
|| (!ctx->seen_body_data && !wait))
524524
{
525525
lua_pushnil(L);
526526
lua_pushliteral(L, "nothing to flush");

0 commit comments

Comments
 (0)