LibCore: Add comment with link to mime registry to MimeData.cpp

This commit is contained in:
Nico Weber 2024-04-18 19:51:13 -04:00 committed by Tim Flynn
commit 2467374ea9
Notes: sideshowbarker 2024-07-16 20:39:14 +09:00

View file

@ -63,6 +63,8 @@ static Array constexpr s_plaintext_suffixes = {
"CMakeLists.txt"sv,
};
// See https://www.iana.org/assignments/media-types/<mime-type> for a list of registered MIME types.
// For example, https://www.iana.org/assignments/media-types/application/gzip
static Array const s_registered_mime_type = {
MimeType { .name = "application/gzip"sv, .common_extensions = { ".gz"sv, ".gzip"sv }, .description = "GZIP compressed data"sv, .magic_bytes = Vector<u8> { 0x1F, 0x8B } },
MimeType { .name = "application/javascript"sv, .common_extensions = { ".js"sv, ".mjs"sv }, .description = "JavaScript source"sv },