X-Git-Url: http://git.ieval.ro/?p=gruntmaster-page.git;a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster.pm;h=503d0c426a1c5e57c2dc3cd1af6ffc7d94c39b04;hp=af1eb781135205f798ebdbb9b1e9fc98dd1922ed;hb=efbbd5da60b47ef96f82700c18723186ab6c8865;hpb=d3892d73af078012472db7cf81a4cba4015d36b4 diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index af1eb78..503d0c4 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -130,7 +130,7 @@ sub dispatch_request{ response_filter { my ($r) = @_; return $r if ref $r ne 'Plack::App::Gruntmaster::Response'; - return [200, ['Content-Type' => 'application/json', 'X-Forever' => 1], [encode_json $r->{params}]] if $format eq 'json'; + return [200, ['Content-Type' => 'application/json'], [encode_json $r->{params}]] if $format eq 'json'; my $ret = render $r->{template}, 'en', title => $r->{title}, %{$r->{params}}; [200, ['Content-Type' => 'text/html'], [encode 'UTF-8', $ret]] },