delegate run_if_script properly
Matt S Trout [Tue, 22 Jan 2013 16:10:13 +0000 (16:10 +0000)]
lib/App/SCS.pm

index a4d7b02..af606f1 100644 (file)
@@ -84,7 +84,7 @@ sub load_plugin {
 sub run_if_script {
   my $self = shift;
   if (caller(1)) {
-    return 1;
+    return $self->web->to_psgi_app;
   } else {
     return $self->run;
   }