Skip to content

Commit

Permalink
fix mime
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayIterator committed Aug 17, 2024
1 parent ef612f7 commit 5f4ccc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Web.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ final public static function serve()
? realpath($publicDirectory . '/' . $originalScriptName)
: null;
if (!headers_sent()) {
$mimeType = MimeType::extension($extension) ?: 'application/octet-stream';
$mimeType = MimeType::mime($extension) ?: 'application/octet-stream';
header('Content-Type: ' . $mimeType);
}
// if the script file name matches the original script file name
Expand Down

0 comments on commit 5f4ccc0

Please sign in to comment.