[nginx] Upstream: made the assignment more obvious.

Ruslan Ermilov ru at nginx.com
Tue May 21 08:59:37 UTC 2013


details:   http://hg.nginx.org/nginx/rev/4a40163772a1
branches:  
changeset: 5216:4a40163772a1
user:      Ruslan Ermilov <ru at nginx.com>
date:      Tue May 21 12:54:26 2013 +0400
description:
Upstream: made the assignment more obvious.

No functional changes.

diffstat:

 src/http/ngx_http_upstream.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r cfab1e7e4ac2 -r 4a40163772a1 src/http/ngx_http_upstream.c
--- a/src/http/ngx_http_upstream.c	Thu May 16 15:37:13 2013 -0700
+++ b/src/http/ngx_http_upstream.c	Tue May 21 12:54:26 2013 +0400
@@ -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;
 



More information about the nginx-devel mailing list