changeset 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 cfab1e7e4ac2
children ddba4e308ecc
files src/http/ngx_http_upstream.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;