Add font mimetypes

Also remove the closing php tag, emply lines after the tag get sent out, so we added a 0x0a byte to every file we were serving which led to various problems with some file types
This commit is contained in:
Andreas Shimokawa 2019-12-21 10:07:13 +01:00
parent 689ba3a8f9
commit 594331d432
1 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,10 @@ $mime_types = array(
"js" => "application/javascript",
"html" => "text/html",
"css" => "text/css",
"ico" => "image/x-icon"
"ico" => "image/x-icon",
"woff" => "font/woff",
"woff2" => "font/woff2",
"ttf" => "font/ttf"
);
$ext = pathinfo($file_url, PATHINFO_EXTENSION);
@ -93,6 +96,3 @@ header("Content-Type: " . $mime_type);
## If we could directly implode+echo raw output from above, we wouldn't need to execute command twice:
passthru($command);
?>