Welcome! Log In Create A New Profile

Advanced

[nginx] Clean up trailers in ngx_http_clean_header() as well.

Sergey Kandaurov
January 26, 2021 04:50AM
details: https://hg.nginx.org/nginx/rev/ecc0ae881a25
branches:
changeset: 7764:ecc0ae881a25
user: Sergey Kandaurov <pluknet@nginx.com>
date: Tue Jan 26 12:39:28 2021 +0300
description:
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).

diffstat:

src/http/ngx_http_special_response.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 61d0df8fcc7c -r ecc0ae881a25 src/http/ngx_http_special_response.c
--- a/src/http/ngx_http_special_response.c Tue Jan 19 20:35:17 2021 +0300
+++ b/src/http/ngx_http_special_response.c Tue Jan 26 12:39:28 2021 +0300
@@ -575,6 +575,10 @@ ngx_http_clean_header(ngx_http_request_t
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;
}
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Clean up trailers in ngx_http_clean_header() as well.

Sergey Kandaurov 268 January 26, 2021 04:50AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 127
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready