move C::E::LWP to C::E::Test and make C::E::H::D a subclass of C::E::T
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine.pm
index efdc18d..3b4b758 100644 (file)
@@ -386,13 +386,13 @@ sub get_action {
     return [];
 }
 
-=item $c->handler($r)
+=item $c->handler( $class, $r )
 
 Handles the request.
 
 =cut
 
-sub handler {
+sub handler ($$) {
     my ( $class, $r ) = @_;
 
     # Always expect worst case!
@@ -482,8 +482,8 @@ sub prepare {
     }
     $c->prepare_request($r);
     $c->prepare_path;
-    $c->prepare_cookies;
     $c->prepare_headers;
+    $c->prepare_cookies;
     $c->prepare_connection;
     my $method   = $c->req->method   || '';
     my $path     = $c->req->path     || '';