comparison 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
comparison
equal deleted inserted replaced
210:00cafae0bdf1 211:fd9fecc4193f
344 344
345 if (rc == NGX_DECLINED) { 345 if (rc == NGX_DECLINED) {
346 continue; 346 continue;
347 } 347 }
348 348
349 if (rc == NGX_AGAIN) {
350 return;
351 }
352
353 if (rc >= NGX_HTTP_SPECIAL_RESPONSE || rc == NGX_ERROR) { 349 if (rc >= NGX_HTTP_SPECIAL_RESPONSE || rc == NGX_ERROR) {
354 ngx_http_finalize_request(r, rc); 350 ngx_http_finalize_request(r, rc);
355 return; 351 return;
356 } 352 }
357 353
358 if (rc == NGX_OK && r->phase == NGX_HTTP_CONTENT_PHASE) { 354 if (r->phase == NGX_HTTP_CONTENT_PHASE) {
359 ngx_http_finalize_request(r, 0); 355 ngx_http_finalize_request(r, rc);
356 return;
357 }
358
359 if (rc == NGX_AGAIN) {
360 return; 360 return;
361 } 361 }
362 362
363 if (rc == NGX_OK && cmcf->phases[r->phase].type == NGX_OK) { 363 if (rc == NGX_OK && cmcf->phases[r->phase].type == NGX_OK) {
364 break; 364 break;