Skip to content

Commit

Permalink
Do not pass psgi.* env vars in FCGIClient
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Jan 5, 2010
1 parent e20ed0f commit aea2ce3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Plack/App/FCGIDispatcher.pm
Expand Up @@ -32,6 +32,11 @@ sub call {
my $conn = FCGI::Client::Connection->new(sock => $sock);
my $input = delete $env->{'psgi.input'};
my $content_in = do { local $/; <$input> };

for my $key (keys %$env) {
delete $env->{$key} if $key =~ /^psgi\./;
}

my ($stdout, $stderr) = $conn->request(
$env,
$content_in,
Expand Down

0 comments on commit aea2ce3

Please sign in to comment.