comparison src/http/modules/ngx_http_dav_module.c @ 1813:d3f80e0be8fa

change status code and add log message
author Igor Sysoev <igor@sysoev.ru>
date Sun, 30 Dec 2007 09:44:02 +0000
parents d457a1576532
children d466c739b54b
comparison
equal deleted inserted replaced
1812:8f8b66a48494 1813:d3f80e0be8fa
151 switch (r->method) { 151 switch (r->method) {
152 152
153 case NGX_HTTP_PUT: 153 case NGX_HTTP_PUT:
154 154
155 if (r->uri.data[r->uri.len - 1] == '/') { 155 if (r->uri.data[r->uri.len - 1] == '/') {
156 return NGX_HTTP_BAD_REQUEST; 156 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
157 "can not PUT to a collection");
158 return NGX_HTTP_CONFLICT;
157 } 159 }
158 160
159 r->request_body_in_file_only = 1; 161 r->request_body_in_file_only = 1;
160 r->request_body_in_persistent_file = 1; 162 r->request_body_in_persistent_file = 1;
161 r->request_body_in_clean_file = 1; 163 r->request_body_in_clean_file = 1;