Subject: | Catalyst::Controller::REST breaks Safari by default. |
Stupidly webkit has decided that text/xml and application/xml should
take precedence over any of the x?html mimetypes in the Accept headers.
This triggers XML::Simple and that's probably not what most people
expect or want. It certainly took *me* by surprise.
Below is a patch to remove the XML::Simple mapping from the default
setup, it can be restored if/when WebKit decides to stop being silly and
move text/xml application/xml to the back of the line.
diff --git a/trunk/lib/Catalyst/Controller/REST.pm
b/trunk/lib/Catalyst/Controller/REST.pm
index d0c43b0..3a60097 100644
--- a/trunk/lib/Catalyst/Controller/REST.pm
+++ b/trunk/lib/Catalyst/Controller/REST.pm
@@ -221,7 +221,6 @@ __PACKAGE__->config(
'stash_key' => 'rest',
'map' => {
'text/html' => 'YAML::HTML',
- 'text/xml' => 'XML::Simple',
'text/x-yaml' => 'YAML',
'application/json' => 'JSON',
'text/x-json' => 'JSON',