]> git.kaiwu.me - nginx.git/commit
Upstream: Upgrade header processing
authorvinaykumar-1591 <v.tokala@f5.com>
Thu, 18 Jun 2026 06:06:33 +0000 (23:06 -0700)
committerSergey Kandaurov <s.kandaurov@f5.com>
Wed, 8 Jul 2026 12:13:45 +0000 (16:13 +0400)
commit3f720dc7845eb21594788fe12cc9e37e5d930161
tree95ebd5b449af3c90971edf17d79bff0629866479
parent29c23ad846787e8baa1390b2edca479eb63ea8d7
Upstream: Upgrade header processing

Pass Upgrade through for HTTP/1.x clients only: both for active
connection upgrades (101 Switching Protocols) and for advertising
available upgrades in other responses (RFC 9110 Section 7.8).
Strip it for HTTP/2+ clients where connection-specific headers
are forbidden (RFC 9113 Section 8.2.2, RFC 9114 Section 4.2).
src/http/ngx_http_upstream.c