]> iEval git - gruntmaster-page.git/commitdiff
Fix static mode
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 21 Mar 2015 17:25:35 +0000 (19:25 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 21 Mar 2015 17:25:35 +0000 (19:25 +0200)
lib/Plack/App/Gruntmaster.pm

index c9965d08a46894e02b5aa61cdbf89087c28d9000..4830d4be096ba6e65fc5fa2842818c05d909e378 100644 (file)
@@ -118,7 +118,7 @@ sub dispatch_request{
                                $vary .= ', Authorization' if $privacy eq 'private';
                                my @hdrs = ('X-Forever' => 1, 'Cache-Control' => "$privacy, max-age=$r->{maxage}", Vary => $vary);
                                return [200, ['Content-Type' => 'application/json; charset=utf-8', @hdrs], [encode_json $r->{params}]] if $format eq 'json';
-                               my $ret = render $r->{template}, 'en', title => $r->{title}, %{$r->{params}}, maybe static => $env->{HTTP_X_STATIC} + 1;
+                               my $ret = render $r->{template}, 'en', title => $r->{title}, %{$r->{params}}, maybe static => $env->{HTTP_X_STATIC};
                                [200, ['Content-Type' => 'text/html; charset=utf-8', @hdrs], [encode 'UTF-8', $ret]]
                        },
                },
This page took 0.025559 seconds and 4 git commands to generate.