comparison src/http/ngx_http_special_response.c @ 7764:ecc0ae881a25

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).
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 26 Jan 2021 12:39:28 +0300
parents d0d6cf5031a3
children d26db4f82d7d
comparison
equal deleted inserted replaced
7763:61d0df8fcc7c 7764:ecc0ae881a25
573 573
574 r->headers_out.headers.part.nelts = 0; 574 r->headers_out.headers.part.nelts = 0;
575 r->headers_out.headers.part.next = NULL; 575 r->headers_out.headers.part.next = NULL;
576 r->headers_out.headers.last = &r->headers_out.headers.part; 576 r->headers_out.headers.last = &r->headers_out.headers.part;
577 577
578 r->headers_out.trailers.part.nelts = 0;
579 r->headers_out.trailers.part.next = NULL;
580 r->headers_out.trailers.last = &r->headers_out.trailers.part;
581
578 r->headers_out.content_length_n = -1; 582 r->headers_out.content_length_n = -1;
579 r->headers_out.last_modified_time = -1; 583 r->headers_out.last_modified_time = -1;
580 } 584 }
581 585
582 586