1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-20 10:24:18 +03:00

Merge pull request #952 from KaloNK/master

Add SVG as file type and default to binary stream for static handler
This commit is contained in:
Ivan Grokhotkov
2015-11-02 12:09:47 +03:00

View File

@ -77,10 +77,11 @@ public:
else if (path.endsWith(".gif")) return "image/gif";
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(".xml")) return "text/xml";
else if (path.endsWith(".pdf")) return "application/pdf";
else if (path.endsWith(".zip")) return "application/zip";
return "text/plain";
return "application/octet-stream";
}
protected: