aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_static_handler.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-09-11 15:18:33 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-09-11 15:18:33 +0000
commite0268b95c6dea75f88d3874213b1aa0cd0aba692 (patch)
tree49f871f82639d76c81618bff00546591bfef37d9 /src/http/modules/ngx_http_static_handler.c
parent96f8377fd89b8735027ccfebea8ad9e77f40f51c (diff)
downloadnginx-e0268b95c6dea75f88d3874213b1aa0cd0aba692.tar.gz
nginx-e0268b95c6dea75f88d3874213b1aa0cd0aba692.zip
nginx-0.0.1-2002-09-11-19:18:33 import
Diffstat (limited to 'src/http/modules/ngx_http_static_handler.c')
-rw-r--r--src/http/modules/ngx_http_static_handler.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_static_handler.c b/src/http/modules/ngx_http_static_handler.c
index 0900a42cf..cbe430cf2 100644
--- 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_request_t *r)
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;