diff options
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); } |