projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3892d7
)
Disable X-Forever on JSON
author
Marius Gavrilescu
<marius@ieval.ro>
Mon, 15 Dec 2014 08:46:01 +0000
(10:46 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Mon, 15 Dec 2014 08:46:01 +0000
(10:46 +0200)
lib/Plack/App/Gruntmaster.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Plack/App/Gruntmaster.pm
b/lib/Plack/App/Gruntmaster.pm
index af1eb781135205f798ebdbb9b1e9fc98dd1922ed..503d0c426a1c5e57c2dc3cd1af6ffc7d94c39b04 100644
(file)
--- 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]]
},
This page took
0.011157 seconds
and
4
git commands to generate.