Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
6537:3ad1064a3aae | 6538:055cbb52ac1d |
---|---|
159 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | 159 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, |
160 "cannot PUT to a collection"); | 160 "cannot PUT to a collection"); |
161 return NGX_HTTP_CONFLICT; | 161 return NGX_HTTP_CONFLICT; |
162 } | 162 } |
163 | 163 |
164 if (r->headers_in.content_range) { | |
165 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | |
166 "PUT with range is unsupported"); | |
167 return NGX_HTTP_NOT_IMPLEMENTED; | |
168 } | |
169 | |
164 r->request_body_in_file_only = 1; | 170 r->request_body_in_file_only = 1; |
165 r->request_body_in_persistent_file = 1; | 171 r->request_body_in_persistent_file = 1; |
166 r->request_body_in_clean_file = 1; | 172 r->request_body_in_clean_file = 1; |
167 r->request_body_file_group_access = 1; | 173 r->request_body_file_group_access = 1; |
168 r->request_body_file_log_level = 0; | 174 r->request_body_file_log_level = 0; |