Mercurial > hg > nginx
comparison src/http/ngx_http_request.h @ 9275:199dc0d6b05b
Added max_headers directive.
The directive limits the number of request headers accepted from clients.
While the total amount of headers is believed to be sufficiently limited
by the existing buffer size limits (client_header_buffer_size and
large_client_header_buffers), the additional limit on the number of headers
might be beneficial to better protect backend servers.
Requested by Maksim Yevmenkin.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 24 May 2024 00:20:01 +0300 |
parents | f798ecafec05 |
children | e46e1ea89ccd |
comparison
equal
deleted
inserted
replaced
9274:46ecad404a29 | 9275:199dc0d6b05b |
---|---|
180 } ngx_http_header_out_t; | 180 } ngx_http_header_out_t; |
181 | 181 |
182 | 182 |
183 typedef struct { | 183 typedef struct { |
184 ngx_list_t headers; | 184 ngx_list_t headers; |
185 ngx_uint_t count; | |
185 | 186 |
186 ngx_table_elt_t *host; | 187 ngx_table_elt_t *host; |
187 ngx_table_elt_t *connection; | 188 ngx_table_elt_t *connection; |
188 ngx_table_elt_t *if_modified_since; | 189 ngx_table_elt_t *if_modified_since; |
189 ngx_table_elt_t *if_unmodified_since; | 190 ngx_table_elt_t *if_unmodified_since; |