Skip to content

Commit

Permalink
Upstream: fill r->headers_out.content_range from upstream response.
Browse files Browse the repository at this point in the history
  • Loading branch information
arut committed Dec 7, 2015
1 parent 9752706 commit 1b478c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/http/ngx_http_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 1b478c5

Please sign in to comment.