mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Improve error handling in AJAX requests
This commit is contained in:
parent
7bdef330f3
commit
88ffabfb7c
3 changed files with 18 additions and 5 deletions
|
|
@ -83,7 +83,7 @@ class DisplayHandler extends Handler
|
|||
|
||||
// header output
|
||||
$httpStatusCode = $oModule->getHttpStatusCode();
|
||||
if($httpStatusCode && $httpStatusCode != 200)
|
||||
if($httpStatusCode && $httpStatusCode != 200 && !in_array(Context::getRequestMethod(), array('XMLRPC', 'JSON', 'JS_CALLBACK')))
|
||||
{
|
||||
self::_printHttpStatusCode($httpStatusCode);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue