diff options
author | Andreas Gohr <gohr@cosmocode.de> | 2015-03-03 17:19:43 +0100 |
---|---|---|
committer | Andreas Gohr <gohr@cosmocode.de> | 2015-03-03 17:22:21 +0100 |
commit | 138a9500555ab0f27ce3fd67d3ea3ab17f8e9e3b (patch) | |
tree | 39e4882927000d3016ed80c0b9bef46f71a63fda /lib/exe/js.php | |
parent | 2f63e920cb57e8162f5460d01717e827e74ea8de (diff) | |
download | rpg-138a9500555ab0f27ce3fd67d3ea3ab17f8e9e3b.tar.gz rpg-138a9500555ab0f27ce3fd67d3ea3ab17f8e9e3b.tar.bz2 |
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.
Diffstat (limited to 'lib/exe/js.php')
-rw-r--r-- | lib/exe/js.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/js.php b/lib/exe/js.php index 3f9781e34..06d0dda55 100644 --- a/lib/exe/js.php +++ b/lib/exe/js.php @@ -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(); } |