From 933a717f3b5cc44dee5c2d3a55acd14ad6eb27fd Mon Sep 17 00:00:00 2001 From: Maciej Date: Fri, 18 Mar 2022 19:02:25 +0100 Subject: [PATCH] LibCore: Make application/octet-stream the default guessed MIME type This MIME type can be associated with every file, text/plain only with plaintext files. This makes browsers (e.g Firefox) properly displaying download progress when downloading files in WebServer :^) --- Userland/Libraries/LibCore/MimeData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibCore/MimeData.cpp b/Userland/Libraries/LibCore/MimeData.cpp index 500e716bcc..daedb87235 100644 --- a/Userland/Libraries/LibCore/MimeData.cpp +++ b/Userland/Libraries/LibCore/MimeData.cpp @@ -86,7 +86,7 @@ String guess_mime_type_based_on_filename(StringView path) return "text/html"; if (path.ends_with(".csv", CaseSensitivity::CaseInsensitive)) return "text/csv"; - return "text/plain"; + return "application/octet-stream"; } #define ENUMERATE_HEADER_CONTENTS \