Subject: | unsupported media type always returned when using deprecated config for Catalyst::Action::REST |
Date: | Tue, 15 Jan 2008 19:21:02 -0800 (PST) |
To: | bug-Catalyst-Action-REST [...] rt.cpan.org |
From: | Marc Hawson <hawson [...] rhythm.com> |
Hello,
When using the deprecated config for Catalyst::Action::REST,
__PACKAGE__->config->{'serialize'}{'default'} = 'text/x-json';
We get the errors:
Content-Type text/x-json is not supported.
[info] Could not find a serializer for an empty content type
Looks like the $config variable is assigned depending on whether or not
the deprecated config is being used. And $map variable is dependent
on $config being set properly, but it undefined when using the deprecated
config. Please see attached file for suggested patch.
One separate issue: when using the non deprecated config, i.e.:
__PACKAGE__->config->{'default'} = 'text/x-json';
The preferred content type (xml in our case) seems to always over the default type.
Is there any way to override this in our controller config?
----
Distribution name and version:
Catalyst-Action-REST-0.60 > Catalyst::Action::SerializeBase
Perl version: v5.8.6 built for i586-linux-thread-multi
OS Vendor/version:
Linux 2.6.16.13-4-23rh #2 SMP i686 athlon i386 GNU/Linux
Thanks!
-Marc Hawson
Message body is not shown because sender requested not to inline it.