[nginx] Upstream: simplified Accept-Ranges handling.
Sergey Kandaurov
pluknet at nginx.com
Mon May 30 22:32:42 UTC 2022
details: https://hg.nginx.org/nginx/rev/cdc2724858ca
branches:
changeset: 8030:cdc2724858ca
user: Maxim Dounin <mdounin at mdounin.ru>
date: Mon May 30 21:25:43 2022 +0300
description:
Upstream: simplified Accept-Ranges handling.
The u->headers_in.accept_ranges field is not used anywhere and hence removed.
diffstat:
src/http/ngx_http_upstream.c | 3 +--
src/http/ngx_http_upstream.h | 1 -
2 files changed, 1 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r e0027c8438b0 -r cdc2724858ca src/http/ngx_http_upstream.c
--- a/src/http/ngx_http_upstream.c Mon May 30 21:25:42 2022 +0300
+++ b/src/http/ngx_http_upstream.c Mon May 30 21:25:43 2022 +0300
@@ -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 },
diff -r e0027c8438b0 -r cdc2724858ca src/http/ngx_http_upstream.h
--- a/src/http/ngx_http_upstream.h Mon May 30 21:25:42 2022 +0300
+++ b/src/http/ngx_http_upstream.h Mon May 30 21:25:43 2022 +0300
@@ -280,7 +280,6 @@ typedef struct {
ngx_table_elt_t *last_modified;
ngx_table_elt_t *location;
- ngx_table_elt_t *accept_ranges;
ngx_table_elt_t *www_authenticate;
ngx_table_elt_t *transfer_encoding;
ngx_table_elt_t *vary;
More information about the nginx-devel
mailing list