diff --git a/lib/Plack/MIME.pm b/lib/Plack/MIME.pm index f83bf1ad..7dbdbb3d 100644 --- a/lib/Plack/MIME.pm +++ b/lib/Plack/MIME.pm @@ -9,6 +9,7 @@ our $MIME_TYPES = { ".aif" => "audio/x-aiff", ".aiff" => "audio/x-aiff", ".apk" => "application/vnd.android.package-archive", + ".apng" => "image/apng", ".asc" => "application/pgp-signature", ".asf" => "video/x-ms-asf", ".asm" => "text/x-asm", @@ -16,6 +17,7 @@ our $MIME_TYPES = { ".atom" => "application/atom+xml", ".au" => "audio/basic", ".avi" => "video/x-msvideo", + ".avif" => "image/avif", ".bat" => "application/x-msdownload", ".bin" => "application/octet-stream", ".bmp" => "image/bmp", @@ -25,6 +27,7 @@ our $MIME_TYPES = { ".cc" => "text/x-c", ".chm" => "application/vnd.ms-htmlhelp", ".class" => "application/octet-stream", + ".collection" => "font/collection", ".com" => "application/x-msdownload", ".conf" => "text/plain", ".cpp" => "text/x-c", @@ -45,6 +48,7 @@ our $MIME_TYPES = { ".dvi" => "application/x-dvi", ".ear" => "application/java-archive", ".eml" => "message/rfc822", + ".eot" => "application/vnd.ms-fontobject", ".eps" => "application/postscript", ".exe" => "application/x-msdownload", ".f" => "text/x-fortran", @@ -69,7 +73,7 @@ our $MIME_TYPES = { ".jnlp" => "application/x-java-jnlp-file", ".jpeg" => "image/jpeg", ".jpg" => "image/jpeg", - ".js" => "application/javascript", + ".js" => "text/javascript", ".json" => "application/json", ".log" => "text/plain", ".m3u" => "audio/x-mpegurl", @@ -79,6 +83,7 @@ our $MIME_TYPES = { ".mathml" => "application/mathml+xml", ".mbox" => "application/mbox", ".mdoc" => "text/troff", + ".md" => "text/markdown", ".me" => "text/troff", ".mid" => "audio/midi", ".midi" => "audio/midi", @@ -98,6 +103,7 @@ our $MIME_TYPES = { ".odt" => "application/vnd.oasis.opendocument.text", ".ogg" => "application/ogg", ".ogv" => "video/ogg", + ".otf" => "font/otf", ".p" => "text/x-pascal", ".pas" => "text/x-pascal", ".pbm" => "image/x-portable-bitmap", @@ -129,6 +135,7 @@ our $MIME_TYPES = { ".rtf" => "application/rtf", ".ru" => "text/x-script.ruby", ".s" => "text/x-asm", + ".sfnt" => "font/sfnt", ".sgm" => "text/sgml", ".sgml" => "text/sgml", ".sh" => "application/x-sh", @@ -150,6 +157,7 @@ our $MIME_TYPES = { ".tiff" => "image/tiff", ".torrent" => "application/x-bittorrent", ".tr" => "text/troff", + ".tsv" => "text/tab-separated-values", ".ttf" => "font/ttf", ".txt" => "text/plain", ".vcf" => "text/x-vcard", @@ -162,7 +170,8 @@ our $MIME_TYPES = { ".wma" => "audio/x-ms-wma", ".wmv" => "video/x-ms-wmv", ".wmx" => "video/x-ms-wmx", - ".woff" => "application/font-woff", + ".woff" => "font/woff", + ".woff2" => "font/woff2", ".wrl" => "model/vrml", ".wsdl" => "application/wsdl+xml", ".xbm" => "image/x-xbitmap",