You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by ch...@apache.org on 2009/10/25 10:14:18 UTC

svn commit: r829516 - /incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php

Author: chabotc
Date: Sun Oct 25 09:14:17 2009
New Revision: 829516

URL: http://svn.apache.org/viewvc?rev=829516&view=rev
Log:
SHINDIG-1205 by Arne Roomann-Kurrik - Accept application/javascript encoded requests in PHP servlets

Modified:
    incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php

Modified: incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php?rev=829516&r1=829515&r2=829516&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php (original)
+++ incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php Sun Oct 25 09:14:17 2009
@@ -67,7 +67,7 @@
       // make sure the content type is in all lower case since that's what we'll check for in the handlers
       $_SERVER['CONTENT_TYPE'] = strtolower($_SERVER['CONTENT_TYPE']);
     }
-    $acceptedContentTypes = array('application/atom+xml', 'application/xml', 'application/json', 'application/json-rpc', 'application/jsonrequest');
+    $acceptedContentTypes = array('application/atom+xml', 'application/xml', 'application/json', 'application/json-rpc', 'application/jsonrequest', 'application/javascript');
     if (isset($_SERVER['CONTENT_TYPE'])) {
       // normalize things like "application/json; charset=utf-8" to application/json
       foreach ($acceptedContentTypes as $contentType) {