summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-04-17 17:14:34 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-04-17 17:14:34 +0200
commit2026c7558e4909d10d1c6ce45e7e1dd297cbf9c6 (patch)
treef5a0036e2cefd47287a5d5275946bf3ba5b3f3bb
parent707658c00a788949ee94912001edc8d730345d7a (diff)
parenteecd4bd18e49ff7c3e93961574ed9b6f7adb3b1c (diff)
downloadnextcloud-server-2026c7558e4909d10d1c6ce45e7e1dd297cbf9c6.tar.gz
nextcloud-server-2026c7558e4909d10d1c6ce45e7e1dd297cbf9c6.zip
Merge pull request #8249 from owncloud/correct-m
Use JS as content-type due to mimesniffing
-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");