From: Igor Sysoev Date: Thu, 18 Jan 2007 21:14:46 +0000 (+0000) Subject: the PUTing to collection must return NGX_HTTP_BAD_REQUEST X-Git-Tag: release-0.5.8~6 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=e95ea5b878895965889c05c1b1c804c0cf8bf43e;p=nginx.git 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 index ad673f5a0..277a5bfc9 100644 --- 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 *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;