Add content type header
This commit is contained in:
parent
6691b27bd1
commit
7ce02c25b1
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue