Skip to content

Commit

Permalink
MDL-52835 mod_data: Correct MIME type for JS template
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael de Raadt committed Jan 21, 2016
1 parent eddec36 commit acc9fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/data/js.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
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;
}

0 comments on commit acc9fed

Please sign in to comment.