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 e9fa313 commit dde6062Copy full SHA for dde6062
src/ngx_http_lua_headerfilterby.c
@@ -143,8 +143,13 @@ 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
- return ngx_http_filter_finalize_request(r, &ngx_http_lua_module,
147
- ctx->exit_code);
+ rc = ngx_http_filter_finalize_request(r, &ngx_http_lua_module,
+ ctx->exit_code);
148
+ if (rc == NGX_ERROR || rc == NGX_AGAIN) {
149
+ return rc;
150
+ }
151
+
152
+ return NGX_DECLINED;
153
}
154
155
return NGX_OK;
@@ -272,10 +277,6 @@ ngx_http_lua_header_filter(ngx_http_request_t *r)
272
277
273
278
ctx->context = old_context;
274
279
275
- if (r->filter_finalize) {
276
- return rc;
- }
-
280
if (rc == NGX_DECLINED) {
281
282
0 commit comments