[nginx] Upstream: fill r->headers_out.content_range from upstrea...

Roman Arutyunyan arut at nginx.com
Mon Dec 7 14:14:51 UTC 2015


details:   http://hg.nginx.org/nginx/rev/f44de0d12143
branches:  
changeset: 6316:f44de0d12143
user:      Roman Arutyunyan <arut at nginx.com>
date:      Mon Dec 07 16:30:47 2015 +0300
description:
Upstream: fill r->headers_out.content_range from upstream response.

diffstat:

 src/http/ngx_http_upstream.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

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_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 },



More information about the nginx-devel mailing list