Skip to content

Commit

Permalink
bugfix: ngx.flush(true) calls right after ngx.send_header() was broke…
Browse files Browse the repository at this point in the history
…n due to the previous commit.
  • Loading branch information
agentzh committed May 20, 2016
1 parent 547c961 commit 3b4a963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngx_http_lua_output.c
Expand Up @@ -520,7 +520,7 @@ ngx_http_lua_ngx_flush(lua_State *L)

#if 1
if ((!r->header_sent && !ctx->header_sent)
|| !ctx->seen_body_data)
|| (!ctx->seen_body_data && !wait))
{
lua_pushnil(L);
lua_pushliteral(L, "nothing to flush");
Expand Down

0 comments on commit 3b4a963

Please sign in to comment.