mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
Clean up trailers in ngx_http_clean_header() as well.
The function has not been updated with introduction of trailers support in 7034:1b068a4e82d8 (1.13.2).
This commit is contained in:
parent
2f008a76f8
commit
56f5331683
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user