mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Merge pull request #1724 from marvinroger/patch-1
Add font MIME types, fix #1601
This commit is contained in:
commit
c78c37b5cc
@ -123,6 +123,12 @@ public:
|
||||
else if (path.endsWith(".jpg")) return "image/jpeg";
|
||||
else if (path.endsWith(".ico")) return "image/x-icon";
|
||||
else if (path.endsWith(".svg")) return "image/svg+xml";
|
||||
else if (path.endsWith(".ttf")) return "application/x-font-ttf";
|
||||
else if (path.endsWith(".otf")) return "application/x-font-opentype";
|
||||
else if (path.endsWith(".woff")) return "application/font-woff";
|
||||
else if (path.endsWith(".woff2")) return "application/font-woff2";
|
||||
else if (path.endsWith(".eot")) return "application/vnd.ms-fontobject";
|
||||
else if (path.endsWith(".sfnt")) return "application/font-sfnt";
|
||||
else if (path.endsWith(".xml")) return "text/xml";
|
||||
else if (path.endsWith(".pdf")) return "application/pdf";
|
||||
else if (path.endsWith(".zip")) return "application/zip";
|
||||
|
Loading…
x
Reference in New Issue
Block a user