Fix incorrect Content-Type in JSON callback responses #2448

This commit is contained in:
Kijin Sung 2024-12-15 00:16:57 +09:00
parent 4d5fac5d77
commit 8c5f96f8c5
2 changed files with 10 additions and 4 deletions

View file

@ -97,7 +97,7 @@ class DisplayHandler extends Handler
}
else
{
if($responseMethod == 'JSON' || $responseMethod == 'JS_CALLBACK' || isset($_SERVER['HTTP_X_AJAX_COMPAT']) || isset($_POST['_rx_ajax_compat']))
if($responseMethod == 'JSON' || isset($_SERVER['HTTP_X_AJAX_COMPAT']) || isset($_POST['_rx_ajax_compat']))
{
self::_printJSONHeader();
}