fix sysGeneric to avoid mime-type errors for js, css and woff files

This commit is contained in:
Fernando Ontiveros
2014-02-21 01:01:50 -04:00
parent f62956ae76
commit b04ccffcc3

View File

@@ -132,9 +132,13 @@ if (file_exists($requestFile)) {
$ext_file = "application/octet-stream";
} elseif ($ext_file == "tar") {
$ext_file = "application/x-tar";
} elseif ($ext_file == "woff") {
$ext_file = "application/font-woff";
} elseif ($ext_file == "js") {
$ext_file = "text/javascript";
} elseif ($ext_file=="css") {
//may this line be innecesary, all the .css are been generated at run time
$ext_file = 'css/'.$ext_file;
$ext_file = 'text/css';
} else {
$ext_file = "application/octet-stream";
}