From 5b57d01365b67fbb6248652c8366a1b8068f9349 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 21 May 2013 12:54:26 +0400 Subject: Upstream: made the assignment more obvious. No functional changes. --- src/http/ngx_http_upstream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http') 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; -- cgit