From: t0m Date: Sun, 5 Jul 2009 13:18:09 +0000 (+0100) Subject: Strip trailing whitespace, tidy up and fix POD X-Git-Tag: 0.74~13 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-REST.git;a=commitdiff_plain;h=69ad525ba10320a816563ccee5cb88373e383f22 Strip trailing whitespace, tidy up and fix POD --- diff --git a/lib/Catalyst/Action/REST.pm b/lib/Catalyst/Action/REST.pm index 6d650d9..31613c0 100644 --- a/lib/Catalyst/Action/REST.pm +++ b/lib/Catalyst/Action/REST.pm @@ -174,19 +174,16 @@ L, L =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). - -**NOTE** Apache will refuse %2F unless configured otherise. -Make sure AllowEncodedSlashes On is in your httpd.conf file in order for this to run smoothly. - -=cut - -=cut - +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 +accepted return formats. You can do this by setting it in your query string +thusly: C<< ?content-type=application%2Fjson (where %2F == / uri escaped). >> +B Apache will refuse %2F unless configured otherise. +Make sure C<< AllowEncodedSlashes On >> is in your httpd.conf file in orde +for this to run smoothly. +=back =head1 MAINTAINER