text/javascript is obsolete. Fixes #1847

This commit is contained in:
Samuel Georges 2016-03-21 19:13:01 +11:00
parent 076f5199af
commit 2a3a63857c

View File

@ -175,7 +175,7 @@ class CombineAssets
$combiner = $this->prepareCombiner($cacheInfo['files']);
$contents = $combiner->dump();
$mime = ($cacheInfo['extension'] == 'css') ? 'text/css' : 'text/javascript';
$mime = ($cacheInfo['extension'] == 'css') ? 'text/css' : 'application/javascript';
header_remove();
$response = Response::make($contents);