mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Upstream: slightly optimized ngx_http_upstream_process_header().
This commit is contained in:
parent
5b57d01365
commit
76c1d58a46
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user