1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-06 05:21:22 +03:00

Add SVG as file type and default to binary stream for static handler

This commit is contained in:
Kaloyan Kovachev 2015-11-01 17:59:24 +02:00
parent 71347b8142
commit 20de6b8a6a

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: