fix sysGeneric to avoid mime-type errors for js, css and woff files
This commit is contained in:
@@ -132,9 +132,13 @@ if (file_exists($requestFile)) {
|
|||||||
$ext_file = "application/octet-stream";
|
$ext_file = "application/octet-stream";
|
||||||
} elseif ($ext_file == "tar") {
|
} elseif ($ext_file == "tar") {
|
||||||
$ext_file = "application/x-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") {
|
} elseif ($ext_file=="css") {
|
||||||
//may this line be innecesary, all the .css are been generated at run time
|
//may this line be innecesary, all the .css are been generated at run time
|
||||||
$ext_file = 'css/'.$ext_file;
|
$ext_file = 'text/css';
|
||||||
} else {
|
} else {
|
||||||
$ext_file = "application/octet-stream";
|
$ext_file = "application/octet-stream";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user