comparison src/http/modules/ngx_http_dav_module.c @ 1060:8e5c032e7855

the PUTing to collection must return NGX_HTTP_BAD_REQUEST
author Igor Sysoev <igor@sysoev.ru>
date Thu, 18 Jan 2007 21:14:46 +0000
parents 01f818c6f7de
children 4d203f76b757
comparison
equal deleted inserted replaced
1059:bff1312b84ed 1060:8e5c032e7855
128 switch (r->method) { 128 switch (r->method) {
129 129
130 case NGX_HTTP_PUT: 130 case NGX_HTTP_PUT:
131 131
132 if (r->uri.data[r->uri.len - 1] == '/') { 132 if (r->uri.data[r->uri.len - 1] == '/') {
133 return NGX_DECLINED; 133 return NGX_HTTP_BAD_REQUEST;
134 } 134 }
135 135
136 r->request_body_in_file_only = 1; 136 r->request_body_in_file_only = 1;
137 r->request_body_in_persistent_file = 1; 137 r->request_body_in_persistent_file = 1;
138 r->request_body_delete_incomplete_file = 1; 138 r->request_body_delete_incomplete_file = 1;