Re: range_filter_module get duplicated Accept-Ranges response headers

2020-07-08 Thread webber
Hi, OK, I see. Now I agree that Accept-Ranges header should be removed anyway in slice module, and any plan to fix that? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,288569,288632#msg-288632 ___ nginx mailing list nginx@nginx.org http://m

Re: range_filter_module get duplicated Accept-Ranges response headers

2020-07-08 Thread webber
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 respon

Re: range_filter_module get duplicated Accept-Ranges response headers

2020-07-07 Thread webber
Hi, Thanks for your reply. I have tried the patch that removes the original Accept-Ranges in slice filter module, but it is not work as my expected. Because I think response header `Accept-Ranges` should be added if client send a range request. Actually, in my production environment, my upstream

range_filter_module get duplicated Accept-Ranges response headers

2020-07-06 Thread webber
Hello, Recently, we found if we use nginx slice module , and upstream server is such as a static file server, nginx will response duplicated `Accept-Ranges` headers if client request is not included range header. the minimal config example as follow: ``` server { listen