Update index.php

This commit is contained in:
Namhyeon Go 2024-02-29 17:28:25 +09:00 committed by GitHub
parent 2eb1c061c9
commit fd369d9464
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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