diff src/http/ngx_http_upstream.c @ 8030:cdc2724858ca

Upstream: simplified Accept-Ranges handling. The u->headers_in.accept_ranges field is not used anywhere and hence removed.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 30 May 2022 21:25:43 +0300
parents e0027c8438b0
children d26db4f82d7d
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -259,8 +259,7 @@ static ngx_http_upstream_header_t  ngx_h
                  offsetof(ngx_http_headers_out_t, expires), 1 },
 
     { ngx_string("Accept-Ranges"),
-                 ngx_http_upstream_process_header_line,
-                 offsetof(ngx_http_upstream_headers_in_t, accept_ranges),
+                 ngx_http_upstream_ignore_header_line, 0,
                  ngx_http_upstream_copy_allow_ranges,
                  offsetof(ngx_http_headers_out_t, accept_ranges), 1 },