Mercurial > hg > nginx-quic
diff src/http/modules/ngx_http_static_handler.c @ 10:4f3879d9b6f6
nginx-0.0.1-2002-09-11-19:18:33 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 11 Sep 2002 15:18:33 +0000 |
parents | 708f8bb772ec |
children | 2aba961a1d34 |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_static_handler.c +++ b/src/http/modules/ngx_http_static_handler.c @@ -45,16 +45,17 @@ int ngx_http_static_handler(ngx_http_req ngx_log_error(NGX_LOG_ERR, r->connection->log, ngx_errno, "ngx_http_static_handler: " ngx_open_file_n " %s failed", r->filename); - /* STUB */ - return -1; + + return NGX_HTTP_INTERNAL_SERVER_ERROR; } if (ngx_stat_fd(r->fd, &r->fileinfo) == -1) { ngx_log_error(NGX_LOG_ERR, r->connection->log, ngx_errno, "ngx_http_static_handler: " ngx_stat_fd_n " %s failed", r->filename); - /* STUB */ - return -1; + + /* close fd */ + return NGX_HTTP_INTERNAL_SERVER_ERROR; } r->headers_out->status = NGX_HTTP_OK;