From: Marius Gavrilescu Date: Mon, 15 Dec 2014 08:46:01 +0000 (+0200) Subject: Disable X-Forever on JSON X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=efbbd5da60b47ef96f82700c18723186ab6c8865;p=gruntmaster-page.git Disable X-Forever on JSON --- 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]] },