aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_static_handler.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-04-11 16:01:14 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-04-11 16:01:14 +0000
commitfd67586ef670a2ed181bb19d60619714f404aacc (patch)
treef13d1535caa6ff13d512d71ba8d1003c75f47cb8 /src/http/modules/ngx_http_static_handler.c
parentcde2478a8540b19d4c9f5077fae23803889ed393 (diff)
downloadnginx-fd67586ef670a2ed181bb19d60619714f404aacc.tar.gz
nginx-fd67586ef670a2ed181bb19d60619714f404aacc.zip
nginx-0.0.1-2003-04-11-20:01:14 import
Diffstat (limited to 'src/http/modules/ngx_http_static_handler.c')
-rw-r--r--src/http/modules/ngx_http_static_handler.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/http/modules/ngx_http_static_handler.c b/src/http/modules/ngx_http_static_handler.c
index c8a014164..480e641a3 100644
--- a/src/http/modules/ngx_http_static_handler.c
+++ b/src/http/modules/ngx_http_static_handler.c
@@ -40,14 +40,15 @@ int ngx_http_static_handler(ngx_http_request_t *r)
"ngx_http_static_handler: "
ngx_open_file_n " %s failed", r->file.name.data);
- if (err == NGX_ENOENT)
+ if (err == NGX_ENOENT) {
return NGX_HTTP_NOT_FOUND;
-#if (WIN32)
- else if (err == ERROR_PATH_NOT_FOUND)
+
+ } else if (err == NGX_ENOTDIR) {
return NGX_HTTP_NOT_FOUND;
-#endif
- else
+
+ } else {
return NGX_HTTP_INTERNAL_SERVER_ERROR;
+ }
}
if (!r->file.info_valid) {