summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-04-17 10:40:19 +0200
committerLukas Reschke <lukas@statuscode.ch>2014-04-17 10:40:19 +0200
commiteecd4bd18e49ff7c3e93961574ed9b6f7adb3b1c (patch)
tree49f9fa73dd3da2b888d64805fe4196a775a500aa /settings
parenta7d7ca2fb3cab08447161261c367065e2999a67e (diff)
downloadnextcloud-server-eecd4bd18e49ff7c3e93961574ed9b6f7adb3b1c.tar.gz
nextcloud-server-eecd4bd18e49ff7c3e93961574ed9b6f7adb3b1c.zip
Use JS as content-type due to mimesniffing
Diffstat (limited to 'settings')
-rw-r--r--settings/js/apps-custom.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/js/apps-custom.php b/settings/js/apps-custom.php
index c25148cdde5..2b2f256b39f 100644
--- a/settings/js/apps-custom.php
+++ b/settings/js/apps-custom.php
@@ -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");