Add content type header

This commit is contained in:
steckbrief 2016-08-23 10:07:29 +02:00
parent 6691b27bd1
commit 7ce02c25b1

View file

@ -244,6 +244,7 @@ function sendHttpReturnCodeAndJson($code, $data) {
if (!is_array($data)) {
$data = ['msg' => $data];
}
header('Content-Type: application/json');
sendHttpReturnCodeAndMessage($code, json_encode($data));
}