Skip Menu |

This queue is for tickets about the Net-Server CPAN distribution.

Report information
The Basics
Id: 132198
Status: new
Priority: 0/
Queue: Net-Server

People
Owner: Nobody in particular
Requestors: JRM [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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'};