diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-10-27 08:53:49 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-10-27 08:53:49 +0000 |
commit | 10fc9ef77503ec4db5f5006557aeffc1939043ca (patch) | |
tree | 48dd22fcf5c6defd2960156f24a8b07757a7c6da /src/http/ngx_http_core_module.c | |
parent | 6414b96ebc50f42bf878aa84839921ab0aa9f4df (diff) | |
download | nginx-10fc9ef77503ec4db5f5006557aeffc1939043ca.tar.gz nginx-10fc9ef77503ec4db5f5006557aeffc1939043ca.zip |
nginx-0.0.1-2003-10-27-11:53:49 import
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r-- | src/http/ngx_http_core_module.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 0a4e58373..ff2d26ecc 100644 --- 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 *r) 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_request_t *r) 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: %d" _ rc); int ngx_http_send_header(ngx_http_request_t *r) { + if (r->main) { + return NGX_OK; + } + return (*ngx_http_top_header_filter)(r); } |