Use JS as content-type due to mimesniffing

remotes/origin/stable6
Lukas Reschke 2014-04-17 10:40:19 +07:00 committed by Morris Jobke
parent d4be12ab21
commit c4d4065dc2
1 changed files with 2 additions and 2 deletions

@ -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");