aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2013-05-21 12:54:26 +0400
committerRuslan Ermilov <ru@nginx.com>2013-05-21 12:54:26 +0400
commit5b57d01365b67fbb6248652c8366a1b8068f9349 (patch)
tree75ebd9393faebd66dee35abf0df0beb2dc6971f6 /src
parent1b10a9adf8447145ac2607f16681340049409fc8 (diff)
downloadnginx-5b57d01365b67fbb6248652c8366a1b8068f9349.tar.gz
nginx-5b57d01365b67fbb6248652c8366a1b8068f9349.zip
Upstream: made the assignment more obvious.
No functional changes.
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 4183d9d68..ae71a1196 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -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;