Skip to content

Commit 88e5a4d

Browse files
committed
server-side: +HTTP header Content-Type: application/json
1 parent 0d5b62d commit 88e5a4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/FileAPI.class.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public static function makeResponse(array $res, $jsonp = null){
6464

6565
if( empty($jsonp) ){
6666
header("HTTP/1.1 $httpStatus $httpStatusText");
67+
$httpHeaders['Content-Type'] = 'application/json';
6768
foreach( $httpHeaders as $header => $value ){
6869
header("$header: $value");
6970
}

0 commit comments

Comments
 (0)