]> Sergey Matveev's repositories - public-inbox.git/commit
httpd: set psgi.url_scheme to 'https' for TLS listeners
authorEric Wong <e@80x24.org>
Sun, 8 Aug 2021 01:03:50 +0000 (01:03 +0000)
committerEric Wong <e@80x24.org>
Sun, 8 Aug 2021 01:17:20 +0000 (01:17 +0000)
commitb5d21c2b21cc1c19b29d3298d14f207ba910a31d
tree4c428b6ca9f5eb0b66337d63305c7938c62dd561
parent5d3e9705c8d5a6d0341a5f1bed2027ef9f9e95a8
httpd: set psgi.url_scheme to 'https' for TLS listeners

For users using the native TLS functionality of -httpd (instead
of using nginx + Plack::Middleware::ReverseProxy),
psgi.url_scheme=http was wrong and would lead to improper
redirects.
lib/PublicInbox/HTTPD.pm
script/public-inbox-httpd
t/httpd-corner.psgi
t/httpd-https.t