mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 05:11:37 +08:00
change status code and add log message
This commit is contained in:
parent
0d68f27748
commit
ab325357f9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user