Skip to content

Commit 5f4ccc0

Browse files
committed
fix mime
1 parent ef612f7 commit 5f4ccc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Web.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ final public static function serve()
205205
? realpath($publicDirectory . '/' . $originalScriptName)
206206
: null;
207207
if (!headers_sent()) {
208-
$mimeType = MimeType::extension($extension) ?: 'application/octet-stream';
208+
$mimeType = MimeType::mime($extension) ?: 'application/octet-stream';
209209
header('Content-Type: ' . $mimeType);
210210
}
211211
// if the script file name matches the original script file name

0 commit comments

Comments
 (0)