summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-12-30 09:44:02 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-12-30 09:44:02 +0000
commitab325357f90f5b41487c3fb9852bfae696b28223 (patch)
treeb41d189aded65954d48084b591147ca6501e6197
parent0d68f27748754f4851829c02e1624300d36f5966 (diff)
downloadnginx-ab325357f90f5b41487c3fb9852bfae696b28223.tar.gz
nginx-ab325357f90f5b41487c3fb9852bfae696b28223.tar.bz2
change status code and add log message
-rw-r--r--src/http/modules/ngx_http_dav_module.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_dav_module.c b/src/http/modules/ngx_http_dav_module.c
index bfb12db67..8c45e6441 100644
--- a/src/http/modules/ngx_http_dav_module.c
+++ b/src/http/modules/ngx_http_dav_module.c
@@ -153,7 +153,9 @@ ngx_http_dav_handler(ngx_http_request_t *r)
case NGX_HTTP_PUT:
if (r->uri.data[r->uri.len - 1] == '/') {
- return NGX_HTTP_BAD_REQUEST;
+ ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
+ "can not PUT to a collection");
+ return NGX_HTTP_CONFLICT;
}
r->request_body_in_file_only = 1;