From: Dmitry Volyntsev Date: Mon, 8 May 2023 23:40:50 +0000 (-0700) Subject: HTTP: fixed r.status setter when filtering. X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/postgres_fdw.c?a=commitdiff_plain;h=aaa79cf41975eab7418480c8ff5b84e23cf7f2b0;p=njs.git HTTP: fixed r.status setter when filtering. --- diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c index b9980f96..208417c7 100644 --- a/nginx/ngx_http_js_module.c +++ b/nginx/ngx_http_js_module.c @@ -2091,6 +2091,7 @@ ngx_http_js_ext_status(njs_vm_t *vm, njs_object_prop_t *prop, } r->headers_out.status = n; + r->headers_out.status_line.len = 0; njs_value_undefined_set(retval);