We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82d0c26 commit e9fa313Copy full SHA for e9fa313
src/ngx_http_lua_headerfilterby.c
@@ -143,13 +143,8 @@ ngx_http_lua_header_filter_by_chunk(lua_State *L, ngx_http_request_t *r)
143
144
dd("finalize request with %d", (int) ctx->exit_code);
145
146
- rc = ngx_http_filter_finalize_request(r, &ngx_http_lua_module,
147
- ctx->exit_code);
148
- if (rc == NGX_ERROR || rc == NGX_AGAIN) {
149
- return rc;
150
- }
151
-
152
- return NGX_DECLINED;
+ return ngx_http_filter_finalize_request(r, &ngx_http_lua_module,
+ ctx->exit_code);
153
}
154
155
return NGX_OK;
@@ -277,6 +272,10 @@ ngx_http_lua_header_filter(ngx_http_request_t *r)
277
272
278
273
ctx->context = old_context;
279
274
275
+ if (r->filter_finalize) {
276
+ return rc;
+ }
+
280
if (rc == NGX_DECLINED) {
281
282
0 commit comments