From: Arthur Axel 'fREW' Schmidt Date: Tue, 28 Jul 2009 00:56:18 +0000 (-0500) Subject: I'm an idiot X-Git-Tag: 0.77~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-REST.git;a=commitdiff_plain;h=5f749844ef9839e412a0c3e37ec7d3da007bc70a I'm an idiot --- diff --git a/lib/Catalyst/Action/REST.pm b/lib/Catalyst/Action/REST.pm index 2ee9716..4a607b0 100644 --- a/lib/Catalyst/Action/REST.pm +++ b/lib/Catalyst/Action/REST.pm @@ -176,24 +176,10 @@ L, L =item Q: I'm getting a "415 Unsupported Media Type" error. What gives?! -<<<<<<< HEAD:lib/Catalyst/Action/REST.pm -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). >> ->>>>>>> f04ed654a172628f642bdefe8483c1e6becf9ad1:lib/Catalyst/Action/REST.pm B Apache will refuse %2F unless configured otherise. Make sure C<< AllowEncodedSlashes On >> is in your httpd.conf file in orde