# HG changeset patch # User Igor Sysoev # Date 1199392992 0 # Node ID 5ae4cace07276643242a4531f350234ad6420fbd # Parent 935427c55e0427f3b8558d554742c2c52e2188bf add comment diff --git a/src/http/modules/ngx_http_dav_module.c b/src/http/modules/ngx_http_dav_module.c --- 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) {