[Sungrazr-svn] [107] Sungrazr_Server_Adapter_JsonRpc: [CHG] Since some JS libs are inflexible about JSON submissions, accept text/ javascript as well as application/json

0 views
Skip to first unread message

cl...@killersoft.com

unread,
Dec 22, 2007, 5:07:52 PM12/22/07
to Sungra...@googlegroups.com
Revision
107
Author
clay
Date
2007-12-22 14:07:51 -0800 (Sat, 22 Dec 2007)

Log Message

Sungrazr_Server_Adapter_JsonRpc: [CHG] Since some JS libs are inflexible about JSON submissions, accept text/javascript as well as application/json

Modified Paths

Diff

Modified: trunk/Sungrazr/Server/Adapter/JsonRpc.php (106 => 107)


--- trunk/Sungrazr/Server/Adapter/JsonRpc.php	2007-12-22 04:40:16 UTC (rev 106)
+++ trunk/Sungrazr/Server/Adapter/JsonRpc.php	2007-12-22 22:07:51 UTC (rev 107)
@@ -36,6 +36,7 @@
         'headers'           => array(),
         'content_types' => array(
             'request'   => array(
+                'text/javascript',
                 'application/json'
             ),
             'response'  => array(
Reply all
Reply to author
Forward
0 new messages