comparison src/http/ngx_http_upstream.c @ 5217:ddba4e308ecc

Upstream: slightly optimized ngx_http_upstream_process_header().
author Ruslan Ermilov <ru@nginx.com>
date Tue, 21 May 2013 12:54:27 +0400
parents 4a40163772a1
children 05c53652e7b4
comparison
equal deleted inserted replaced
5216:4a40163772a1 5217:ddba4e308ecc
1707 1707
1708 if (u->input_filter(u->input_filter_ctx, n) == NGX_ERROR) { 1708 if (u->input_filter(u->input_filter_ctx, n) == NGX_ERROR) {
1709 ngx_http_upstream_finalize_request(r, u, NGX_ERROR); 1709 ngx_http_upstream_finalize_request(r, u, NGX_ERROR);
1710 return; 1710 return;
1711 } 1711 }
1712 1712 }
1713 if (u->length == 0) { 1713
1714 ngx_http_upstream_finalize_request(r, u, 0); 1714 if (u->length == 0) {
1715 return; 1715 ngx_http_upstream_finalize_request(r, u, 0);
1716 } 1716 return;
1717 } 1717 }
1718 1718
1719 u->read_event_handler = ngx_http_upstream_process_body_in_memory; 1719 u->read_event_handler = ngx_http_upstream_process_body_in_memory;
1720 1720
1721 ngx_http_upstream_process_body_in_memory(r, u); 1721 ngx_http_upstream_process_body_in_memory(r, u);