]> git.kaiwu.me - nginx.git/commitdiff
Upstream: fill r->headers_out.content_range from upstream response.
authorRoman Arutyunyan <arut@nginx.com>
Mon, 7 Dec 2015 13:30:47 +0000 (16:30 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Mon, 7 Dec 2015 13:30:47 +0000 (16:30 +0300)
src/http/ngx_http_upstream.c

index e005806b0ff5493f5b2f443429755367979ef883..78f6e34981d9732ac391a7dae5214441808724cc 100644 (file)
@@ -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 },