From: Igor Sysoev Date: Thu, 3 Jan 2008 20:43:12 +0000 (+0000) Subject: add comment X-Git-Tag: release-0.6.25~12 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=ac487bff1ea19ea472f4ca53f040f9ab8b2d78a8;p=nginx.git add comment --- 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) {