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) {