Merge pull request #53 from beheist/dev-bh-fix-header-case

BUGFIX: Fix capitalization of the "Content-Type" HTTP header
pull/48/head
Pål Jørgensen 2018-08-06 14:15:32 +02:00 committed by GitHub
commit b1db442554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }