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

The uwsgi specification states that "The uwsgi block vars represent a
dictionary/hash".  This implies that no duplicate headers are expected.

Further, provided headers are expected to follow CGI specification,
which also requires to combine headers (RFC 3875, section "4.1.18.
Protocol-Specific Meta-Variables"): "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/http/modules/ngx_http_uwsgi_module.c