drop calling ->to_app for static serving since it isn't required
Matt S Trout [Sun, 23 Oct 2011 03:43:42 +0000 (03:43 +0000)]
lib/SCSite/DevMode.pm

index 89d69d9..e0f446a 100644 (file)
@@ -9,7 +9,7 @@ has _static_handler => (is => 'lazy');
 sub _build__static_handler {
   my ($self) = @_;
   my $static_dir = $self->config->{static_dir};
-  Plack::App::File->new(root => $static_dir)->to_app;
+  Plack::App::File->new(root => $static_dir);
 }
 
 around dispatch_request => sub {