Disable X-Forever on JSON
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 15 Dec 2014 08:46:01 +0000 (10:46 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 15 Dec 2014 08:46:01 +0000 (10:46 +0200)
lib/Plack/App/Gruntmaster.pm

index af1eb781135205f798ebdbb9b1e9fc98dd1922ed..503d0c426a1c5e57c2dc3cd1af6ffc7d94c39b04 100644 (file)
@@ -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]]
                        },
This page took 0.011157 seconds and 4 git commands to generate.