diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2022-05-30 21:25:43 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2022-05-30 21:25:43 +0300 |
commit | bbf8ed48c455dbb95accf886d25be95d15abde1f (patch) | |
tree | 5f4e8c119c51fc1b89c4dc721e03cc5c825e5195 /src/http/ngx_http_upstream.c | |
parent | 25093473051cae249963ace3156900dcc7ef5fae (diff) | |
download | nginx-bbf8ed48c455dbb95accf886d25be95d15abde1f.tar.gz nginx-bbf8ed48c455dbb95accf886d25be95d15abde1f.zip |
Upstream: simplified Accept-Ranges handling.
The u->headers_in.accept_ranges field is not used anywhere and hence removed.
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r-- | src/http/ngx_http_upstream.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 4bf207ba1..b480f5559 100644 --- 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_http_upstream_headers_in[] = { 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 }, |