From de7454d413f8520129d42c6860ebf1d16ea69d47 Mon Sep 17 00:00:00 2001 From: Michael de Raadt Date: Thu, 21 Jan 2016 14:07:01 +1100 Subject: [PATCH] MDL-52835 mod_data: Correct MIME type for JS template --- mod/data/js.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/data/js.php b/mod/data/js.php index f76349d270a..96e48559755 100644 --- a/mod/data/js.php +++ b/mod/data/js.php @@ -38,7 +38,7 @@ if ($data = $DB->get_record('data', array('id'=>$d))) { header('Expires: ' . gmdate("D, d M Y H:i:s", time() + $lifetime) . ' GMT'); header('Cache-control: max_age = '. $lifetime); header('Pragma: '); - header('Content-type: text/css; charset=utf-8'); // Correct MIME type + header('Content-type: application/javascript; charset=utf-8'); // Correct MIME type. echo $data->jstemplate; } \ No newline at end of file