]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use JS as content-type due to mimesniffing
authorLukas Reschke <lukas@statuscode.ch>
Thu, 17 Apr 2014 08:40:19 +0000 (10:40 +0200)
committerMorris Jobke <morris.jobke@gmail.com>
Thu, 17 Apr 2014 15:15:35 +0000 (17:15 +0200)
settings/js/apps-custom.php

index c25148cdde5ee687b74301eefd7743bebfac992c..2b2f256b39f85f08cf0ab811e65392dc59b4b423 100644 (file)
@@ -9,8 +9,8 @@
 // Check if admin user
 OC_Util::checkAdminUser();
 
-// Set the content type to JSON
-header('Content-type: application/json');
+// Set the content type to JS
+header('Content-type: application/javascript');
 
 // Disallow caching
 header("Cache-Control: no-cache, must-revalidate");