Subject: | [PATCH] Net::Server::PSGI storing stringified objects in %ENV |
As of perl-5.18.0, values stored in %ENV are always stringified. This causes problems in Net::Server::PSGI since it tries to store glob-based objects in a reference to %ENV.
This patch simply copies %ENV instead of referencing.
--- PSGI.pm~ 2017-08-10 14:22:32.000000000 -0400
+++ PSGI.pm 2020-03-23 00:57:24.706312601 -0400
@@ -50,7 +50,7 @@
$self->process_headers;
alarm($self->timeout_idle);
- my $env = \%ENV;
+ my $env = { %ENV };
$env->{'psgi.version'} = [1, 0];
$env->{'psgi.url_scheme'} = ($ENV{'HTTPS'} && $ENV{'HTTPS'} eq 'on') ? 'https' : 'http';
$env->{'psgi.input'} = $self->{'server'}->{'client'};