summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_special_response.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2021-02-17 14:48:35 +0300
committerSergey Kandaurov <pluknet@nginx.com>2021-02-17 14:48:35 +0300
commit8ca2f73073da431d8e747589eac5b49a7c0faa5b (patch)
tree6d5f46eb2dccc4cacc13a3e353f78f940f310bbb /src/http/ngx_http_special_response.c
parentb93b056261114022b08f11413f959d3af687b7a7 (diff)
parent949c97007b9c6010e958c36653e33c3f5bf34540 (diff)
downloadnginx-8ca2f73073da431d8e747589eac5b49a7c0faa5b.tar.gz
nginx-8ca2f73073da431d8e747589eac5b49a7c0faa5b.tar.bz2
Merged with the default branch.
Diffstat (limited to 'src/http/ngx_http_special_response.c')
-rw-r--r--src/http/ngx_http_special_response.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_special_response.c b/src/http/ngx_http_special_response.c
index 76e670588..72f56fd9a 100644
--- a/src/http/ngx_http_special_response.c
+++ b/src/http/ngx_http_special_response.c
@@ -575,6 +575,10 @@ ngx_http_clean_header(ngx_http_request_t *r)
r->headers_out.headers.part.next = NULL;
r->headers_out.headers.last = &r->headers_out.headers.part;
+ r->headers_out.trailers.part.nelts = 0;
+ r->headers_out.trailers.part.next = NULL;
+ r->headers_out.trailers.last = &r->headers_out.trailers.part;
+
r->headers_out.content_length_n = -1;
r->headers_out.last_modified_time = -1;
}