aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_http_js_module.c
diff options
context:
space:
mode:
authorDmitry Volyntsev <xeioex@nginx.com>2023-05-08 16:40:50 -0700
committerDmitry Volyntsev <xeioex@nginx.com>2023-05-08 16:40:50 -0700
commitaaa79cf41975eab7418480c8ff5b84e23cf7f2b0 (patch)
tree4d78fecbc00cadd5e5cbf8dd9c6dd62010364d22 /nginx/ngx_http_js_module.c
parent5d1c816284242457f21013137b09a0f73bd6d81b (diff)
downloadnjs-aaa79cf41975eab7418480c8ff5b84e23cf7f2b0.tar.gz
njs-aaa79cf41975eab7418480c8ff5b84e23cf7f2b0.zip
HTTP: fixed r.status setter when filtering.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r--nginx/ngx_http_js_module.c1
1 files changed, 1 insertions, 0 deletions
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);