aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_script.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2022-05-30 21:25:45 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2022-05-30 21:25:45 +0300
commite59c2096ae9d561997ad2d64d61094503e6be4c3 (patch)
treee02d6b996a9a4a1876d1b569809fdffe7b033263 /src/http/ngx_http_script.c
parentbbf8ed48c455dbb95accf886d25be95d15abde1f (diff)
downloadnginx-e59c2096ae9d561997ad2d64d61094503e6be4c3.tar.gz
nginx-e59c2096ae9d561997ad2d64d61094503e6be4c3.zip
All known output headers can be linked lists now.
The h->next pointer properly provided as NULL in all cases where known output headers are added. Note that there are 3rd party modules which might not do this, and it might be risky to rely on this for arbitrary headers.
Diffstat (limited to 'src/http/ngx_http_script.c')
-rw-r--r--src/http/ngx_http_script.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c
index bebdbd92b..a2b9f1b7b 100644
--- a/src/http/ngx_http_script.c
+++ b/src/http/ngx_http_script.c
@@ -1243,6 +1243,7 @@ ngx_http_script_regex_end_code(ngx_http_script_engine_t *e)
}
r->headers_out.location->hash = 1;
+ r->headers_out.location->next = NULL;
ngx_str_set(&r->headers_out.location->key, "Location");
r->headers_out.location->value = e->buf;