]> git.kaiwu.me - nginx.git/commit
Added max_headers directive.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 23 May 2024 21:20:01 +0000 (00:20 +0300)
committerSergey Kandaurov <s.kandaurov@f5.com>
Mon, 6 Apr 2026 10:08:36 +0000 (14:08 +0400)
commit365694160a85229a7cb006738de9260d49ff5fa2
treee8cfd92127d6adbe6c644afba6d80e1b58bdc801
parent06c30ec29d392af00157c0b0eecbc545b330e50f
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.

Signed-off-by: Elijah Zupancic <e.zupancic@f5.com>
Origin: <https://freenginx.org/hg/nginx/rev/199dc0d6b05be814b5c811876c20af58cd361fea>
src/http/ngx_http_core_module.c
src/http/ngx_http_core_module.h
src/http/ngx_http_request.c
src/http/ngx_http_request.h
src/http/v2/ngx_http_v2.c
src/http/v3/ngx_http_v3_request.c