Fix : JSON answer didn't work

This commit is contained in:
sparkyx 2022-03-08 09:21:59 +01:00
parent 081bc8ac4e
commit 421e394060

View file

@ -2793,7 +2793,7 @@ EOF;
*/
function json_response($p_answer)
{
header("Content-type: text/json; charset: utf8", true);
header("Content-type: application/json; charset: utf8", true);
echo json_encode($p_answer,
JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES|JSON_NUMERIC_CHECK);
}