At least pass the port param to _run_psgi_app to get http-server.t running again.
Florian Ragwitz [Sun, 10 Jan 2010 20:30:06 +0000 (20:30 +0000)]
lib/Catalyst/Engine.pm

index 4cc8c6d..ca836f9 100644 (file)
@@ -751,7 +751,6 @@ Start the engine. Implemented by the various engine classes.
 
 sub run {
     my ($self, $app, @args) = @_;
-    Carp::cluck("Run");
     # FIXME - Do something sensible with the options we're passed
     $self->_run_psgi_app($self->_build_psgi_app($app, @args), @args);
 }
@@ -783,9 +782,9 @@ sub _build_psgi_app {
 }
 
 sub _run_psgi_app {
-    my ($self, $psgi_app, @args);
+    my ($self, $psgi_app, @args) = @_;
     # FIXME - Need to be able to specify engine and pass options..
-    Plack::Loader->auto()->run($psgi_app);
+    Plack::Loader->auto(port => $args[0])->run($psgi_app);
 }
 
 =head2 $self->write($c, $buffer)