minor change that unfucks ::State::URI (provided by Helios)
Rafael Kitover [Sat, 25 Jul 2009 11:58:03 +0000 (11:58 +0000)]
lib/Catalyst/Plugin/Session.pm

index 224f508..7d3bdaa 100644 (file)
@@ -80,14 +80,14 @@ sub setup_session {
 sub prepare_action {
     my $c = shift;
 
+    $c->maybe::next::method(@_);
+
     if (    $c->config->{session}{flash_to_stash}
         and $c->sessionid
         and my $flash_data = $c->flash )
     {
         @{ $c->stash }{ keys %$flash_data } = values %$flash_data;
     }
-
-    $c->maybe::next::method(@_);
 }
 
 sub finalize_headers {