Skip to content

Commit 8a4850d

Browse files
committed
return NGX_ERROR to finish follow body_filter while body_exited
1 parent e211b1e commit 8a4850d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_lua_bodyfilterby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ ngx_http_lua_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
272272
}
273273

274274
if (ctx->body_exited) {
275-
return NGX_OK;
275+
return NGX_ERROR;
276276
}
277277

278278
if (ctx->seen_last_in_filter) {

0 commit comments

Comments
 (0)