diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-29 21:59:00 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-29 21:59:00 -0700 |
commit | c9e8ff8fcb4c42948c8272ae367adda83957c101 (patch) | |
tree | 259137d5d99aab57c114f560d95fc66d49a3bd05 /modules/gallery/controllers/combined.php | |
parent | 02b46833d60b462b70e3b00d6712059cc3547809 (diff) |
Use the appropriate content-type for javascript (application/javascript).
Diffstat (limited to 'modules/gallery/controllers/combined.php')
-rw-r--r-- | modules/gallery/controllers/combined.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/gallery/controllers/combined.php b/modules/gallery/controllers/combined.php index 49a54f24..925d052d 100644 --- a/modules/gallery/controllers/combined.php +++ b/modules/gallery/controllers/combined.php @@ -73,7 +73,11 @@ class Combined_Controller extends Controller { } // $type is either 'javascript' or 'css' - header("Content-Type: text/$type; charset=UTF-8"); + if ($type == "javascript") { + header("Content-Type: application/javascript; charset=UTF-8"); + } else { + header("Content-Type: text/css; charset=UTF-8"); + } header("Expires: Tue, 19 Jan 2038 00:00:00 GMT"); header("Cache-Control: max-age=2678400"); header('Pragma: public'); |