comparison src/http/ngx_http_request.c @ 7625:aca005d232ff

Disabled multiple Transfer-Encoding headers. We anyway do not support more than one transfer encoding, so accepting requests with multiple Transfer-Encoding headers doesn't make sense. Further, we do not handle multiple headers, and ignore anything but the first header. Reported by Filippo Valsorda.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 20 Feb 2020 16:19:29 +0300
parents 49f9d2f7d887
children fe5976aae0e3
comparison
equal deleted inserted replaced
7624:1055e43e4fab 7625:aca005d232ff
129 offsetof(ngx_http_headers_in_t, if_range), 129 offsetof(ngx_http_headers_in_t, if_range),
130 ngx_http_process_unique_header_line }, 130 ngx_http_process_unique_header_line },
131 131
132 { ngx_string("Transfer-Encoding"), 132 { ngx_string("Transfer-Encoding"),
133 offsetof(ngx_http_headers_in_t, transfer_encoding), 133 offsetof(ngx_http_headers_in_t, transfer_encoding),
134 ngx_http_process_header_line }, 134 ngx_http_process_unique_header_line },
135 135
136 { ngx_string("TE"), 136 { ngx_string("TE"),
137 offsetof(ngx_http_headers_in_t, te), 137 offsetof(ngx_http_headers_in_t, te),
138 ngx_http_process_header_line }, 138 ngx_http_process_header_line },
139 139