Author: chabotc
Date: Tue Sep 1 11:15:14 2009
New Revision: 809971
URL: http://svn.apache.org/viewvc?rev=809971&view=rev
Log:
Also accept 'application/json-rpc' and 'application/jsonrequest' content types
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=809971&r1=809970&r2=809971&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php (original)
+++ incubator/shindig/trunk/php/src/social/servlet/ApiServlet.php Tue Sep 1
11:15:14 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');
+ $acceptedContentTypes = array('application/atom+xml', 'application/xml',
'application/json', 'application/json-rpc', 'application/jsonrequest');
if (isset($_SERVER['CONTENT_TYPE'])) {
// normalize things like "application/json; charset=utf-8" to
application/json
foreach ($acceptedContentTypes as $contentType) {