summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2015-12-07 16:30:47 +0300
committerRoman Arutyunyan <arut@nginx.com>2015-12-07 16:30:47 +0300
commit1b478c50deba414dae292c9a5f0f07114b9fbc81 (patch)
tree1ca00a985550443a1cf265409e263a78f9d91c34
parent9752706bd443780c11062f60a22e46a968707f3d (diff)
Upstream: fill r->headers_out.content_range from upstream response.
-rw-r--r--src/http/ngx_http_upstream.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index e005806b..78f6e349 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -250,6 +250,11 @@ ngx_http_upstream_header_t ngx_http_upstream_headers_in[] = {
ngx_http_upstream_copy_allow_ranges,
offsetof(ngx_http_headers_out_t, accept_ranges), 1 },
+ { ngx_string("Content-Range"),
+ ngx_http_upstream_ignore_header_line, 0,
+ ngx_http_upstream_copy_header_line,
+ offsetof(ngx_http_headers_out_t, content_range), 0 },
+
{ ngx_string("Connection"),
ngx_http_upstream_process_connection, 0,
ngx_http_upstream_ignore_header_line, 0, 0 },