From 5f4ccc0922912ff2d25777038424bf6969980081 Mon Sep 17 00:00:00 2001 From: ArrayIterator Date: Sat, 17 Aug 2024 15:39:13 +0700 Subject: [PATCH] fix mime --- src/Web.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Web.php b/src/Web.php index 7efb0e7..7bf363a 100644 --- a/src/Web.php +++ b/src/Web.php @@ -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