# HG changeset patch # User Roman Arutyunyan # Date 1449495047 -10800 # Node ID f44de0d12143f0bd8857ed19ec91b2a22db9ddc9 # Parent cb31017e961b4a54e83c4fc1be46c18842696207 Upstream: fill r->headers_out.content_range from upstream response. diff -r cb31017e961b -r f44de0d12143 src/http/ngx_http_upstream.c --- a/src/http/ngx_http_upstream.c Wed Dec 02 19:17:19 2015 -0800 +++ b/src/http/ngx_http_upstream.c Mon Dec 07 16:30:47 2015 +0300 @@ -250,6 +250,11 @@ 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 },