Mercurial > hg > nginx
diff src/http/modules/ngx_http_dav_module.c @ 6538:055cbb52ac1d
Dav: return 501 on PUT with ranges (ticket #948).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 16 May 2016 20:37:23 +0300 |
parents | 2cd019520210 |
children | c85dfd99a2dd |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_dav_module.c +++ b/src/http/modules/ngx_http_dav_module.c @@ -161,6 +161,12 @@ ngx_http_dav_handler(ngx_http_request_t return NGX_HTTP_CONFLICT; } + if (r->headers_in.content_range) { + ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, + "PUT with range is unsupported"); + return NGX_HTTP_NOT_IMPLEMENTED; + } + r->request_body_in_file_only = 1; r->request_body_in_persistent_file = 1; r->request_body_in_clean_file = 1;