From 825ab13a93a4ccd72bd4f0caca02ed199bd61b17 Mon Sep 17 00:00:00 2001 From: Albert Dahlin Date: Tue, 18 Jun 2019 12:04:05 +0200 Subject: [PATCH] Add fonts mime type mapping to elm reactor Fonts have their proper mime types since Feb 2017. https://www.iana.org/assignments/media-types/media-types.xhtml#font --- terminal/src/Develop.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/terminal/src/Develop.hs b/terminal/src/Develop.hs index 4e120cc6f..60a4d58f5 100644 --- a/terminal/src/Develop.hs +++ b/terminal/src/Develop.hs @@ -248,7 +248,11 @@ mimeTypeDict = , ".tbz" ==> "application/x-bzip-compressed-tar" , ".text" ==> "text/plain" , ".tgz" ==> "application/x-tgz" - , ".ttf" ==> "application/x-font-truetype" + , ".ttf" ==> "font/ttf" + , ".sfnt" ==> "font/sfnt" + , ".woff" ==> "font/woff" + , ".woff2" ==> "font/woff2" + , ".otf" ==> "font/otf" , ".txt" ==> "text/plain" , ".wav" ==> "audio/x-wav" , ".wax" ==> "audio/x-ms-wax"