Documentation fix for Catalyst::Response::from_psgi_response
Neil Lunn [Tue, 19 Nov 2013 05:46:11 +0000 (16:46 +1100)]
Signed-off-by: John Napiorkowski <jjnapiork@cpan.org>

lib/Catalyst/Response.pm

index b57f84c..86b6b10 100644 (file)
@@ -362,7 +362,7 @@ Example:
 
     sub myaction :Local Args {
       my ($self, $c) = @_;
-      $c->res->from_psgi_response($app->($self->env));
+      $c->res->from_psgi_response($app->($c->req->env));
     }
 
 Please note this does not attempt to map or nest your PSGI application under