From: adam Date: Wed, 18 Oct 2006 00:15:17 +0000 (+0000) Subject: The content type for 404's should be text/plain X-Git-Tag: 1.08~295 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7d2ac60782cfd5d02d75159943bc7ff99a50cc14;p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git The content type for 404's should be text/plain --- diff --git a/lib/Catalyst/Controller/REST.pm b/lib/Catalyst/Controller/REST.pm index 0b1aaca..1195f13 100644 --- 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; }