Upstream: slightly optimized ngx_http_upstream_process_header().

This commit is contained in:
Ruslan Ermilov 2013-05-21 12:54:27 +04:00
parent 5b57d01365
commit 76c1d58a46

View File

@ -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); ngx_http_upstream_finalize_request(r, u, NGX_ERROR);
return; return;
} }
}
if (u->length == 0) { if (u->length == 0) {
ngx_http_upstream_finalize_request(r, u, 0); ngx_http_upstream_finalize_request(r, u, 0);
return; return;
}
} }
u->read_event_handler = ngx_http_upstream_process_body_in_memory; u->read_event_handler = ngx_http_upstream_process_body_in_memory;