Skip to content
Snippets Groups Projects
Commit 138a9500 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

send JavaScript with correct mimetype

While Browsers (IE of course) still fail to accept the correct
application/javascript mimetype in the type attribute of the script
element, we should serve the scripts with the correct Content-Type
header at least. This is especially important as the default
configuration of mod_deflate expects application/javascript and will not
compress text/javascript.
parent 2f63e920
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ require_once(DOKU_INC.'inc/init.php');
// Main (don't run when UNIT test)
if(!defined('SIMPLE_TEST')){
header('Content-Type: text/javascript; charset=utf-8');
header('Content-Type: application/javascript; charset=utf-8');
js_out();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment