Mercurial > hg > nginx
diff src/http/ngx_http_core_module.c @ 211:fd9fecc4193f
nginx-0.0.1-2003-12-15-16:57:13 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 15 Dec 2003 13:57:13 +0000 |
parents | 00cafae0bdf1 |
children | f1d0e5f09c1e |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -346,17 +346,17 @@ static void ngx_http_run_phases(ngx_http continue; } - if (rc == NGX_AGAIN) { - return; - } - if (rc >= NGX_HTTP_SPECIAL_RESPONSE || rc == NGX_ERROR) { ngx_http_finalize_request(r, rc); return; } - if (rc == NGX_OK && r->phase == NGX_HTTP_CONTENT_PHASE) { - ngx_http_finalize_request(r, 0); + if (r->phase == NGX_HTTP_CONTENT_PHASE) { + ngx_http_finalize_request(r, rc); + return; + } + + if (rc == NGX_AGAIN) { return; }