Mercurial > hg > nginx
diff src/http/modules/ngx_http_static_handler.c @ 89:29bf798b583f
nginx-0.0.1-2003-05-15-19:42:53 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 15 May 2003 15:42:53 +0000 |
parents | 674d333f4296 |
children | a23d010f356d |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_static_handler.c Wed May 14 17:13:13 2003 +0000 +++ b/src/http/modules/ngx_http_static_handler.c Thu May 15 15:42:53 2003 +0000 @@ -34,7 +34,12 @@ #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 @@ 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,