drop calling ->to_app for static serving since it isn't required
[scpubgit/SCS.git] / 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 {