X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=app.psgi;h=a13a73e4965ba82ca2d26b8a40a8c094d2bb3094;hb=aefbc42eea7ef293b2fe6db72158e3494a742000;hp=323748dc187169003ee5351db4191584ece46163;hpb=cbae57719c80843e922c3a1b248a56b8e8bff5b6;p=plack-app-gruntmaster.git diff --git a/app.psgi b/app.psgi index 323748d..a13a73e 100644 --- a/app.psgi +++ b/app.psgi @@ -1,6 +1,6 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use v5.14; -no if $] >= 5.017011, warnings => 'experimental::smartmatch'; +use warnings; use Gruntmaster::Data; use Plack::App::Gruntmaster; @@ -8,8 +8,6 @@ use Plack::Builder; use Plack::Util; use Log::Log4perl; -use constant AUTH_TIMEOUT => 5 * 60; - sub CONTENT_SECURITY_POLICY () { my $csp = <($_[0]); my $hdrs = Plack::Util::headers($resp->[1]); $hdrs->set('Content-Security-Policy', CONTENT_SECURITY_POLICY); - $hdrs->set('Link', '; rel=stylesheet') if $hdrs->get('Content-Type') =~ m,^text/html,; $resp->[1] = $hdrs->headers; $resp; }