diff --git a/web/api/v1/upload/UploadHandler.php b/web/api/v1/upload/UploadHandler.php index 0c80e8f40..be264aac7 100755 --- a/web/api/v1/upload/UploadHandler.php +++ b/web/api/v1/upload/UploadHandler.php @@ -1193,7 +1193,7 @@ class UploadHandler } if(!headers_sent()){ // this is the most likely/expected path. - header("Content-Type: text/javascript; charset=UTF-8"); + header("Content-Type: application/json"); } else { // html-encode json to prevent xss... $json = htmlentities($json, ENT_QUOTES | ENT_SUBSTITUTE | ENT_DISALLOWED | ENT_HTML401);