# HG changeset patch # User Igor Sysoev # Date 1169154886 0 # Node ID 8e5c032e78557b928a3c650838ea1122ac456adb # Parent bff1312b84edac0078bbecf2a8e341acb1dce692 the PUTing to collection must return NGX_HTTP_BAD_REQUEST 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 @@ -130,7 +130,7 @@ ngx_http_dav_handler(ngx_http_request_t case NGX_HTTP_PUT: if (r->uri.data[r->uri.len - 1] == '/') { - return NGX_DECLINED; + return NGX_HTTP_BAD_REQUEST; } r->request_body_in_file_only = 1;