From ac487bff1ea19ea472f4ca53f040f9ab8b2d78a8 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 3 Jan 2008 20:43:12 +0000 Subject: [PATCH] add comment --- src/http/modules/ngx_http_dav_module.c | 5 +++++ 1 file changed, 5 insertions(+) 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) {