diff src/http/ngx_http_upstream.c @ 5216:4a40163772a1

Upstream: made the assignment more obvious. No functional changes.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 21 May 2013 12:54:26 +0400
parents 07e515e65984
children ddba4e308ecc
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -1701,7 +1701,7 @@ ngx_http_upstream_process_header(ngx_htt
     n = u->buffer.last - u->buffer.pos;
 
     if (n) {
-        u->buffer.last -= n;
+        u->buffer.last = u->buffer.pos;
 
         u->state->response_length += n;