projects
/
catagits/Catalyst-Action-REST.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
The content type for 404's should be text/plain
[catagits/Catalyst-Action-REST.git]
/
lib
/
Catalyst
/
Controller
/
REST.pm
diff --git
a/lib/Catalyst/Controller/REST.pm
b/lib/Catalyst/Controller/REST.pm
index
0b1aaca
..
1195f13
100644
(file)
--- a/
lib/Catalyst/Controller/REST.pm
+++ b/
lib/Catalyst/Controller/REST.pm
@@
-71,6
+71,7
@@
sub status_not_found {
);
$c->response->status(404);
+ $c->response->content_type('text/plain');
$c->response->body($p{'message'});
return 1;
}