This change doesn't do any good because the root cause of the shallow copy is
the way Catalyst::Plugin::SubRequest sets the stash (Via $c->stash, that makes
a shallow copy itself). Don't know of a way to say to Catalyst "use this hashref
as the stash".
sub generate_subinclude {
my ($self, $c, $path, @params) = @_;
- my $stash = $self->keep_stash ? { %{ $c->stash } } : {};
+ my $stash = $self->keep_stash ? $c->stash : {};
croak "subincludes through subrequests require Catalyst::Plugin::SubRequest"
unless $c->can('sub_request');