mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 05:22:35 +09:00
parent
7cede70de0
commit
8cabb88dbb
1 changed files with 2 additions and 5 deletions
|
|
@ -100,19 +100,16 @@ 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);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(Context::getResponseMethod() == 'JSON' || Context::getResponseMethod() == 'JS_CALLBACK' || isset($_POST['_rx_ajax_compat']))
|
||||
{
|
||||
if(strpos($_SERVER['HTTP_ACCEPT'], 'json') !== false)
|
||||
{
|
||||
self::_printJSONHeader();
|
||||
}
|
||||
}
|
||||
elseif(Context::getResponseMethod() == 'XMLRPC')
|
||||
{
|
||||
self::_printXMLHeader();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue