]> git.kaiwu.me - nginx.git/commitdiff
the PUTing to collection must return NGX_HTTP_BAD_REQUEST
authorIgor Sysoev <igor@sysoev.ru>
Thu, 18 Jan 2007 21:14:46 +0000 (21:14 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 18 Jan 2007 21:14:46 +0000 (21:14 +0000)
src/http/modules/ngx_http_dav_module.c

index ad673f5a04f4fbf502a60668b969b381aa86eb7f..277a5bfc96caf443c6d86bfde0349ba96c1cea2b 100644 (file)
@@ -130,7 +130,7 @@ ngx_http_dav_handler(ngx_http_request_t *r)
     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;