Mercurial > hg > nginx
diff src/http/ngx_http_core_module.c @ 160:e7e094d34162
nginx-0.0.1-2003-10-27-11:53:49 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 27 Oct 2003 08:53:49 +0000 |
parents | 981e4af2a425 |
children | 96993d4d5067 |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -232,7 +232,7 @@ void ngx_http_handler(ngx_http_request_t break; } -#if 1 +#if 0 /* TEST STUB */ r->http_version = NGX_HTTP_VERSION_10; /* TEST STUB */ r->keepalive = 0; #endif @@ -295,11 +295,6 @@ static void ngx_http_run_phases(ngx_http return; } - /* TODO THINK: is it dupliate NGX_DONE ??? */ - if (r->closed) { - return; - } - if (rc == NGX_DECLINED) { continue; } @@ -403,6 +398,10 @@ ngx_log_debug(r->connection->log, "rc: % int ngx_http_send_header(ngx_http_request_t *r) { + if (r->main) { + return NGX_OK; + } + return (*ngx_http_top_header_filter)(r); }