From 6ddfbf06625eca15ddf24ac95b755cdc9db32bfa Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 15 May 2003 15:42:53 +0000 Subject: nginx-0.0.1-2003-05-15-19:42:53 import --- src/http/modules/ngx_http_static_handler.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/http/modules/ngx_http_static_handler.c') diff --git a/src/http/modules/ngx_http_static_handler.c b/src/http/modules/ngx_http_static_handler.c index e2bbc93b7..41f134286 100644 --- a/src/http/modules/ngx_http_static_handler.c +++ b/src/http/modules/ngx_http_static_handler.c @@ -34,7 +34,12 @@ int ngx_http_static_handler(ngx_http_request_t *r) #endif - ngx_http_discard_body(r); + rc = ngx_http_discard_body(r); + + if (rc != NGX_OK) { + return rc; + } + ctx = r->connection->log->data; ctx->action = "sending response"; @@ -74,7 +79,7 @@ int ngx_http_static_handler(ngx_http_request_t *r) r->file.info_valid = 1; } -#if !(WIN32) /* not regular files is probably Unix specific */ +#if !(WIN32) /* the not regular files are probably Unix specific */ if (!ngx_is_file(r->file.info)) { ngx_log_error(NGX_LOG_CRIT, r->connection->log, ngx_errno, -- cgit