mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
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 :^)
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user