Improve error handling in AJAX requests

This commit is contained in:
Kijin Sung 2016-04-16 17:51:31 +09:00
parent 7bdef330f3
commit 88ffabfb7c
3 changed files with 18 additions and 5 deletions

View file

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