[nginx] Upstream: slightly optimized ngx_http_upstream_process_h...

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


details:   http://hg.nginx.org/nginx/rev/ddba4e308ecc
branches:  
changeset: 5217:ddba4e308ecc
user:      Ruslan Ermilov <ru at nginx.com>
date:      Tue May 21 12:54:27 2013 +0400
description:
Upstream: slightly optimized ngx_http_upstream_process_header().

diffstat:

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

diffs (20 lines):

diff -r 4a40163772a1 -r ddba4e308ecc src/http/ngx_http_upstream.c
--- a/src/http/ngx_http_upstream.c	Tue May 21 12:54:26 2013 +0400
+++ b/src/http/ngx_http_upstream.c	Tue May 21 12:54:27 2013 +0400
@@ -1709,11 +1709,11 @@ ngx_http_upstream_process_header(ngx_htt
             ngx_http_upstream_finalize_request(r, u, NGX_ERROR);
             return;
         }
-
-        if (u->length == 0) {
-            ngx_http_upstream_finalize_request(r, u, 0);
-            return;
-        }
+    }
+
+    if (u->length == 0) {
+        ngx_http_upstream_finalize_request(r, u, 0);
+        return;
     }
 
     u->read_event_handler = ngx_http_upstream_process_body_in_memory;



More information about the nginx-devel mailing list