X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FController%2FREST.pm;h=3761f071c0179364fa1de792ef4f97fcb1f344ae;hb=367b3ff4e4444df4d20e8688c1cad9e1f59a3ba5;hp=954732608a850d168e71ba1a1a282e62b460dcca;hpb=2f91bf68db8fc4018e4f2fe9952f6caf1d1db2bf;p=catagits%2FCatalyst-Action-Serialize-Data-Serializer.git diff --git a/lib/Catalyst/Controller/REST.pm b/lib/Catalyst/Controller/REST.pm index 9547326..3761f07 100644 --- a/lib/Catalyst/Controller/REST.pm +++ b/lib/Catalyst/Controller/REST.pm @@ -170,13 +170,14 @@ Will do the trick nicely. =back -By default, L will return a C<415 Unsupported Media Type> response if an attempt to use an unsupported content-type is made. You -can ensure that something is always returned by setting the C config -option: +By default, L will return a C<415 Unsupported Media Type> +response if an attempt to use an unsupported content-type is made. You +can ensure that something is always returned by setting the C +config option: - __PACKAGE__->config->{'serialize'}->{'default'} = 'YAML'; + __PACKAGE__->config->{'serialize'}->{'default'} = 'text/x-yaml'; -Would make it always fall back to YAML. +Would make it always fall back to the serializer plugin defined for text/x-yaml. Implementing new Serialization formats is easy! Contributions are most welcome! See L and