Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_index_module.c @ 5126:3d50d86f3572
Fixed language in a comment preceding ngx_http_index_handler().
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 21 Mar 2013 16:05:35 +0000 |
parents | 778ef9c3fd2d |
children | 3fb9b5eb75c0 |
comparison
equal
deleted
inserted
replaced
5125:65b895cd0dfa | 5126:3d50d86f3572 |
---|---|
83 }; | 83 }; |
84 | 84 |
85 | 85 |
86 /* | 86 /* |
87 * Try to open/test the first index file before the test of directory | 87 * Try to open/test the first index file before the test of directory |
88 * existence because valid requests should be much more than invalid ones. | 88 * existence because valid requests should prevail over invalid ones. |
89 * If the file open()/stat() would fail, then the directory stat() should | 89 * If open()/stat() of a file will fail then stat() of a directory |
90 * be more quickly because some data is already cached in the kernel. | 90 * should be faster because kernel may have already cached some data. |
91 * Besides, Win32 may return ERROR_PATH_NOT_FOUND (NGX_ENOTDIR) at once. | 91 * Besides, Win32 may return ERROR_PATH_NOT_FOUND (NGX_ENOTDIR) at once. |
92 * Unix has ENOTDIR error, however, it's less helpful than Win32's one: | 92 * Unix has ENOTDIR error; however, it's less helpful than Win32's one: |
93 * it only indicates that path contains an usual file in place of directory. | 93 * it only indicates that path points to a regular file, not a directory. |
94 */ | 94 */ |
95 | 95 |
96 static ngx_int_t | 96 static ngx_int_t |
97 ngx_http_index_handler(ngx_http_request_t *r) | 97 ngx_http_index_handler(ngx_http_request_t *r) |
98 { | 98 { |