From: Matt S Trout Date: Sun, 23 Oct 2011 03:43:42 +0000 (+0000) Subject: drop calling ->to_app for static serving since it isn't required X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7f2b58eaea155c111471465343b954e2c6f84f15;p=scpubgit%2FSCS.git drop calling ->to_app for static serving since it isn't required --- diff --git a/lib/SCSite/DevMode.pm b/lib/SCSite/DevMode.pm index 89d69d9..e0f446a 100644 --- a/lib/SCSite/DevMode.pm +++ b/lib/SCSite/DevMode.pm @@ -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 {