Merge pull request #8249 from owncloud/correct-m
Use JS as content-type due to mimesniffing
This commit is contained in:
commit
2026c7558e
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,8 @@
|
||||||
// Check if admin user
|
// Check if admin user
|
||||||
OC_Util::checkAdminUser();
|
OC_Util::checkAdminUser();
|
||||||
|
|
||||||
// Set the content type to JSON
|
// Set the content type to JS
|
||||||
header('Content-type: application/json');
|
header('Content-type: application/javascript');
|
||||||
|
|
||||||
// Disallow caching
|
// Disallow caching
|
||||||
header("Cache-Control: no-cache, must-revalidate");
|
header("Cache-Control: no-cache, must-revalidate");
|
||||||
|
|
Loading…
Reference in a new issue