From 099d74cf3d62a092e51ef7dbba9dace68aca7209 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Mon, 16 May 2016 20:37:23 +0300 Subject: Dav: return 501 on PUT with ranges (ticket #948). --- src/http/ngx_http_request.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http/ngx_http_request.c') diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index aa3c398a3..8665e5bd5 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -110,6 +110,10 @@ ngx_http_header_t ngx_http_headers_in[] = { offsetof(ngx_http_headers_in_t, content_length), ngx_http_process_unique_header_line }, + { ngx_string("Content-Range"), + offsetof(ngx_http_headers_in_t, content_range), + ngx_http_process_unique_header_line }, + { ngx_string("Content-Type"), offsetof(ngx_http_headers_in_t, content_type), ngx_http_process_header_line }, -- cgit v1.2.3