[Catalyst-commits] r9153 - Catalyst-Action-REST/0.60/trunk/lib/Catalyst/Action

dhoss at dev.catalyst.perl.org dhoss at dev.catalyst.perl.org
Sun Feb 1 17:06:18 GMT 2009


Author: dhoss
Date: 2009-02-01 17:06:18 +0000 (Sun, 01 Feb 2009)
New Revision: 9153

Modified:
   Catalyst-Action-REST/0.60/trunk/lib/Catalyst/Action/REST.pm
Log:
Began a "Troubleshooting" section.


Modified: Catalyst-Action-REST/0.60/trunk/lib/Catalyst/Action/REST.pm
===================================================================
--- Catalyst-Action-REST/0.60/trunk/lib/Catalyst/Action/REST.pm	2009-01-31 18:39:54 UTC (rev 9152)
+++ Catalyst-Action-REST/0.60/trunk/lib/Catalyst/Action/REST.pm	2009-02-01 17:06:18 UTC (rev 9153)
@@ -155,6 +155,23 @@
 
 L<Catalyst::Action::Serialize>, L<Catalyst::Action::Deserialize>
 
+=head1 TROUBLESHOOTING
+
+=over 4
+
+=item Q: I'm getting a "415 Unsupported Media Type" error. What gives?!
+
+A:  Most likely, you haven't set Content-type equal to "application/json", or one of the 
+accepted return formats.  You can do this by setting it in your query string thusly:
+?content-type=application%2Fjson (where %2F == / uri escaped).
+
+=cut
+
+=cut
+
+
+
+
 =head1 MAINTAINER
 
 J. Shirley <jshirley at gmail.com>




More information about the Catalyst-commits mailing list