mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Return immediately if JSON
This commit is contained in:
parent
e63d597168
commit
79120ae5b6
1 changed files with 4 additions and 8 deletions
|
|
@ -1149,17 +1149,13 @@ class Context
|
|||
{
|
||||
if(strpos($header, 'json') !== false)
|
||||
{
|
||||
$is_json = true;
|
||||
break;
|
||||
self::$_instance->request_method = 'JSON';
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// JSON or XMLRPC
|
||||
if (isset($is_json))
|
||||
{
|
||||
self::$_instance->request_method = 'JSON';
|
||||
}
|
||||
elseif ($GLOBALS['HTTP_RAW_POST_DATA'] && !$_POST)
|
||||
// Check XMLRPC
|
||||
if ($GLOBALS['HTTP_RAW_POST_DATA'] && !$_POST)
|
||||
{
|
||||
self::$_instance->request_method = 'XMLRPC';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue