]> git.kaiwu.me - nginx.git/commitdiff
Upstream: removed unused offset to content_length.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 25 Jun 2014 22:20:05 +0000 (02:20 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 25 Jun 2014 22:20:05 +0000 (02:20 +0400)
It's not needed since introduction of ngx_http_upstream_content_length()
in 103b0d9afe07.

src/http/ngx_http_upstream.c

index 4a4af7321802ba3a08e73a6584ee9c4a39adc422..05766640b61f1660d9fe2fcedfbb9003d777de99 100644 (file)
@@ -174,8 +174,7 @@ ngx_http_upstream_header_t  ngx_http_upstream_headers_in[] = {
                  ngx_http_upstream_copy_content_type, 0, 1 },
 
     { ngx_string("Content-Length"),
-                 ngx_http_upstream_process_content_length,
-                 offsetof(ngx_http_upstream_headers_in_t, content_length),
+                 ngx_http_upstream_process_content_length, 0,
                  ngx_http_upstream_ignore_header_line, 0, 0 },
 
     { ngx_string("Date"),