From: dhoss Date: Sun, 1 Feb 2009 17:06:18 +0000 (+0000) Subject: Began a "Troubleshooting" section. X-Git-Tag: 0.67_01~18 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-REST.git;a=commitdiff_plain;h=5d7480da4f383b70b984c9b53e97f3a76fcc7763 Began a "Troubleshooting" section. --- diff --git a/lib/Catalyst/Action/REST.pm b/lib/Catalyst/Action/REST.pm index f8621da..0f55151 100644 --- a/lib/Catalyst/Action/REST.pm +++ b/lib/Catalyst/Action/REST.pm @@ -155,6 +155,23 @@ a sensible set of defaults for a controller doing REST. L, L +=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