]> git.kaiwu.me - nginx.git/commitdiff
Upstream: made the assignment more obvious.
authorRuslan Ermilov <ru@nginx.com>
Tue, 21 May 2013 08:54:26 +0000 (12:54 +0400)
committerRuslan Ermilov <ru@nginx.com>
Tue, 21 May 2013 08:54:26 +0000 (12:54 +0400)
No functional changes.

src/http/ngx_http_upstream.c

index 4183d9d68683238966bf6ee3c790d66819626ef5..ae71a11967e6836e840a86114b0beb77b283dce0 100644 (file)
@@ -1701,7 +1701,7 @@ ngx_http_upstream_process_header(ngx_http_request_t *r, ngx_http_upstream_t *u)
     n = u->buffer.last - u->buffer.pos;
 
     if (n) {
-        u->buffer.last -= n;
+        u->buffer.last = u->buffer.pos;
 
         u->state->response_length += n;