[njs] HTTP: fixed r.status setter when filtering.
Dmitry Volyntsev
xeioex at nginx.com
Wed May 10 02:00:02 UTC 2023
details: https://hg.nginx.org/njs/rev/2467a70fd45a
branches:
changeset: 2109:2467a70fd45a
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Mon May 08 16:40:50 2023 -0700
description:
HTTP: fixed r.status setter when filtering.
diffstat:
nginx/ngx_http_js_module.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r bc78369be278 -r 2467a70fd45a nginx/ngx_http_js_module.c
--- a/nginx/ngx_http_js_module.c Fri May 05 20:08:58 2023 -0700
+++ b/nginx/ngx_http_js_module.c Mon May 08 16:40:50 2023 -0700
@@ -2091,6 +2091,7 @@ ngx_http_js_ext_status(njs_vm_t *vm, njs
}
r->headers_out.status = n;
+ r->headers_out.status_line.len = 0;
njs_value_undefined_set(retval);
More information about the nginx-devel
mailing list