Skip to content

Instantly share code, notes, and snippets.

@clkao
Created December 19, 2009 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clkao/260167 to your computer and use it in GitHub Desktop.
Save clkao/260167 to your computer and use it in GitHub Desktop.
diff --git a/lib/Plack/Middleware/Session.pm b/lib/Plack/Middleware/Session.pm
index dab15cb..524dcf7 100644
--- a/lib/Plack/Middleware/Session.pm
+++ b/lib/Plack/Middleware/Session.pm
@@ -55,7 +55,7 @@ sub call {
$self->response_cb($res, sub {
my $res = Plack::Response->new(@{$_[0]});
$env->{'plack.session'}->finalize( $res );
- @{$_[0]} = @{$res->finalize};
+ $res;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment