Skip to content
Snippets Groups Projects
Commit 2026c755 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #8249 from owncloud/correct-m

Use JS as content-type due to mimesniffing
parents 707658c0 eecd4bd1
Branches
No related tags found
No related merge requests found
...@@ -9,8 +9,8 @@ ...@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment