X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAction%2FREST.pm;h=31613c0f963615da5bda4c3372a197565cef0a57;hb=69ad525ba10320a816563ccee5cb88373e383f22;hp=6d650d903994e6dbe641f4ca8bbf805fcf73f74e;hpb=d2d931018a9ce738f2e117cdc2fcd0987fe136ee;p=catagits%2FCatalyst-Action-REST.git 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