aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/ngx_http_dav_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-01-03 20:43:12 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-01-03 20:43:12 +0000
commitac487bff1ea19ea472f4ca53f040f9ab8b2d78a8 (patch)
tree2bbc05f94f180161e1783faf7cd6b8af28efb1aa /src/http/modules/ngx_http_dav_module.c
parent58d04fe3fa3b20c2c046bda2d70e4d2112885665 (diff)
downloadnginx-ac487bff1ea19ea472f4ca53f040f9ab8b2d78a8.tar.gz
nginx-ac487bff1ea19ea472f4ca53f040f9ab8b2d78a8.zip
add comment
Diffstat (limited to 'src/http/modules/ngx_http_dav_module.c')
-rw-r--r--src/http/modules/ngx_http_dav_module.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_dav_module.c b/src/http/modules/ngx_http_dav_module.c
index 94867aa5e..f317f08b8 100644
--- a/src/http/modules/ngx_http_dav_module.c
+++ b/src/http/modules/ngx_http_dav_module.c
@@ -422,6 +422,11 @@ ok:
} else {
+ /*
+ * we do not need to test (r->uri.data[r->uri.len - 1] == '/')
+ * because it ngx_file_info("/file/") returned NGX_ENOTDIR above
+ */
+
depth = ngx_http_dav_depth(r, 0);
if (depth != 0 && depth != NGX_HTTP_DAV_INFINITY_DEPTH) {