changeset 6316:f44de0d12143

Upstream: fill r->headers_out.content_range from upstream response.
author Roman Arutyunyan <arut@nginx.com>
date Mon, 07 Dec 2015 16:30:47 +0300
parents cb31017e961b
children 29f35e60840b
files src/http/ngx_http_upstream.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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_ups
                  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 },