mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-03-12 00:45:16 +00:00
Update index.php
This commit is contained in:
parent
2eb1c061c9
commit
fd369d9464
|
@ -371,11 +371,9 @@ $context = array();
|
|||
$rawdata = file_get_contents('php://input');
|
||||
$pos = strpos("<?xml", $rawdata);
|
||||
if ($pos !== false) {
|
||||
// JSON-RPC 2
|
||||
$context = json_decode($rawdata, true);
|
||||
$context = json_decode($rawdata, true); // JSON-RPC 2
|
||||
} else {
|
||||
// XML-RPC
|
||||
$context = xmlrpc_decode_request($rawdata, $method);
|
||||
$context = xmlrpc_decode_request($rawdata, $method); // XML-RPC
|
||||
}
|
||||
|
||||
// check is it jsonrpc (stateless)
|
||||
|
|
Loading…
Reference in New Issue
Block a user