BUGFIX: Fix capitalization of the "Content-Type" HTTP header
parent
6d50bae108
commit
3a8847424c
|
@ -2881,7 +2881,7 @@ class H5PCore {
|
||||||
*/
|
*/
|
||||||
private static function printJson($data, $status_code = NULL) {
|
private static function printJson($data, $status_code = NULL) {
|
||||||
header('Cache-Control: no-cache');
|
header('Cache-Control: no-cache');
|
||||||
header('Content-type: application/json; charset=utf-8');
|
header('Content-Type: application/json; charset=utf-8');
|
||||||
print json_encode($data);
|
print json_encode($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue