diff options
author | David Flatz | 2012-11-08 16:08:12 +0000 |
---|---|---|
committer | David Flatz | 2012-11-08 16:08:12 +0000 |
commit | 004c26e4c0f4b81c06ee67be26cb3abe33399dd6 (patch) | |
tree | e5d3121096b4910f6a5506401671dda96d2f986c | |
parent | cfcc27f8f513d05809df9efbbd4f05b01336bdf6 (diff) | |
download | itools-004c26e4c0f4b81c06ee67be26cb3abe33399dd6.tar.gz itools-004c26e4c0f4b81c06ee67be26cb3abe33399dd6.tar.bz2 itools-004c26e4c0f4b81c06ee67be26cb3abe33399dd6.zip |
send correct mime type for javascript
-rw-r--r-- | itjs.class | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -35,8 +35,7 @@ function send_headers($charset = null) self::$charset = $charset; - if (!preg_match('/Opera/', $_SERVER['HTTP_USER_AGENT']) && !$_REQUEST['itjs_iframe']) # text/plain breaks Opera 8.51/Linux and IFrame fallback - header("Content-Type: text/plain; charset=$charset"); # Berni reported some Firewalls to require this + header("Content-Type: application/x-javascript; charset=$charset"); header('Expires: ' . gmdate('D, d M Y H:i:s', time()+10) . ' GMT'); # prevent broken data on IE reloads } |