diff options
author | Eric Wong <e@80x24.org> | 2021-08-08 01:03:50 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-08-08 01:17:20 +0000 |
commit | b5d21c2b21cc1c19b29d3298d14f207ba910a31d (patch) | |
tree | 4c428b6ca9f5eb0b66337d63305c7938c62dd561 /t/httpd-corner.psgi | |
parent | 5d3e9705c8d5a6d0341a5f1bed2027ef9f9e95a8 (diff) | |
download | public-inbox-b5d21c2b21cc1c19b29d3298d14f207ba910a31d.tar.gz |
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.
Diffstat (limited to 't/httpd-corner.psgi')
-rw-r--r-- | t/httpd-corner.psgi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/httpd-corner.psgi b/t/httpd-corner.psgi index 5fab2ba4..e9a3a6b7 100644 --- a/t/httpd-corner.psgi +++ b/t/httpd-corner.psgi @@ -111,8 +111,10 @@ my $app = sub { } elsif ($path eq '/pid') { $code = 200; push @$body, "$$\n"; + } elsif ($path eq '/url_scheme') { + $code = 200; + push @$body, $env->{'psgi.url_scheme'} } - [ $code, $h, $body ] }; |