mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
parent
7cede70de0
commit
8cabb88dbb
1 changed files with 2 additions and 5 deletions
|
|
@ -100,7 +100,7 @@ class DisplayHandler extends Handler
|
|||
|
||||
// header output
|
||||
$httpStatusCode = $oModule->getHttpStatusCode();
|
||||
if($httpStatusCode !== 200 && !in_array(Context::getRequestMethod(), array('XMLRPC', 'JSON', 'JS_CALLBACK')))
|
||||
if($httpStatusCode !== 200 && !in_array(Context::getResponseMethod(), array('XMLRPC', 'JSON', 'JS_CALLBACK')))
|
||||
{
|
||||
self::_printHttpStatusCode($httpStatusCode);
|
||||
}
|
||||
|
|
@ -108,10 +108,7 @@ class DisplayHandler extends Handler
|
|||
{
|
||||
if(Context::getResponseMethod() == 'JSON' || Context::getResponseMethod() == 'JS_CALLBACK' || isset($_POST['_rx_ajax_compat']))
|
||||
{
|
||||
if(strpos($_SERVER['HTTP_ACCEPT'], 'json') !== false)
|
||||
{
|
||||
self::_printJSONHeader();
|
||||
}
|
||||
self::_printJSONHeader();
|
||||
}
|
||||
elseif(Context::getResponseMethod() == 'XMLRPC')
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue