my $new_env = +{ %$env };
my %stash = %{ ($env->{+PSGI_KEY} || sub {})->() || +{} };
- $new_env->{+PSGI_KEY} = _create_stash( \%stash );
- return $self->app->($new_env);
+ $env->{+PSGI_KEY} = _create_stash( \%stash );
+ return $self->app->($env);
}
=head1 NAME
alone distribution
We store a coderef under the C<PSGI_KEY> which can be dereferenced with
-key values or nothing to access the underly hashref.
+key values or nothing to access the underlying hashref.
The stash middleware is designed so that you can 'nest' applications that
use it. If for example you have a L<Catalyst> application that is called