Welcome! Log In Create A New Profile

Advanced

Re: range_filter_module get duplicated Accept-Ranges response headers

July 08, 2020 04:14AM
Hi,

Sorry to bother you, I rechange the patch as follow:

Previously, if an Accept-Ranges header was already present in the first slice
response, client received two copies of this header. Now, the slice filters
removes the Accept-Ranges header for partital request and if original server
response Accept-Ranges header, has from the response prior to setting the
r->allow_ranges flag.


diff --git a/src/http/modules/ngx_http_slice_filter_module.c b/src/http/modules/ngx_http_slice_filter_module.c
index c1edbca2..9a215e43 100644
--- a/src/http/modules/ngx_http_slice_filter_module.c
+++ b/src/http/modules/ngx_http_slice_filter_module.c
@@ -180,6 +180,11 @@ ngx_http_slice_header_filter(ngx_http_request_t *r)
r->headers_out.content_range->hash = 0;
r->headers_out.content_range = NULL;

+ if (!r->headers_in.range && r->headers_out.accept_ranges) {
+ r->headers_out.accept_ranges->hash = 0;
+ r->headers_out.accept_ranges = NULL;
+ }
+
r->allow_ranges = 1;
r->subrequest_ranges = 1;
r->single_range = 1;
Subject Author Posted

range_filter_module get duplicated Accept-Ranges response headers

webber July 06, 2020 06:49AM

Re: range_filter_module get duplicated Accept-Ranges response headers

Roman Arutyunyan July 07, 2020 06:10AM

Re: range_filter_module get duplicated Accept-Ranges response headers

webber July 08, 2020 12:14AM

Re: range_filter_module get duplicated Accept-Ranges response headers

webber July 08, 2020 04:14AM

Re: range_filter_module get duplicated Accept-Ranges response headers

Roman Arutyunyan July 08, 2020 04:42AM

Re: range_filter_module get duplicated Accept-Ranges response headers

webber July 08, 2020 07:29AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready