]> git.kaiwu.me - nginx.git/commit
FastCGI: combining headers with identical names (ticket #1724).
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 30 May 2022 18:25:27 +0000 (21:25 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 30 May 2022 18:25:27 +0000 (21:25 +0300)
commitd8a7c653e4b8e842c947c0a550a7bc5a7812058a
treecf35530032c5eea4e7cd15fb893fe9ddd0e46730
parent8ad0f62863aaa7ed64b4514c4c1d3ba924410c16
FastCGI: combining headers with identical names (ticket #1724).

FastCGI responder is expected to receive CGI/1.1 environment variables
in the parameters (see section "6.2 Responder" of the FastCGI specification).
Obviously enough, there cannot be multiple environment variables with
the same name.

Further, CGI specification (RFC 3875, section "4.1.18. Protocol-Specific
Meta-Variables") explicitly requires to combine headers: "If multiple
header fields with the same field-name are received then the server MUST
rewrite them as a single value having the same semantics".
src/core/ngx_hash.h
src/http/modules/ngx_http_fastcgi_module.c
src/http/ngx_http_core_module.c
src/http/ngx_http_core_module.h
src/http/ngx_http_request.h