Merge branch 'ancona' into ancona-trace
[catagits/Catalyst-Runtime.git] / lib / Catalyst.pm
index 3580373..c5f9f78 100755 (executable)
@@ -2199,9 +2199,7 @@ Prepares connection.
 
 sub prepare_connection {
     my $c = shift;
-    # XXX - This is called on the engine (not the request) to maintain
-    #       Engine::PSGI back compat.
-    $c->engine->prepare_connection($c);
+    $c->request->prepare_connection($c);
 }
 
 =head2 $c->prepare_cookies