aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2013-05-21 12:54:27 +0400
committerRuslan Ermilov <ru@nginx.com>2013-05-21 12:54:27 +0400
commit76c1d58a46664ecdcf22bb545831632ad3bffc89 (patch)
tree0e97eace43174a3425c21171ce1ce32f1051650f /src
parent5b57d01365b67fbb6248652c8366a1b8068f9349 (diff)
downloadnginx-76c1d58a46664ecdcf22bb545831632ad3bffc89.tar.gz
nginx-76c1d58a46664ecdcf22bb545831632ad3bffc89.zip
Upstream: slightly optimized ngx_http_upstream_process_header().
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_upstream.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index ae71a1196..85fc849e7 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -1709,11 +1709,11 @@ ngx_http_upstream_process_header(ngx_http_request_t *r, ngx_http_upstream_t *u)
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;