1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

ESP8266WebServer: add application/json content type

This commit is contained in:
wuweixin 2017-02-07 02:06:26 +08:00 committed by Ivan Grokhotkov
parent f3be2cd081
commit 0fa34430e6

View File

@ -121,6 +121,7 @@ public:
else if (path.endsWith(".css")) return "text/css"; else if (path.endsWith(".css")) return "text/css";
else if (path.endsWith(".txt")) return "text/plain"; else if (path.endsWith(".txt")) return "text/plain";
else if (path.endsWith(".js")) return "application/javascript"; else if (path.endsWith(".js")) return "application/javascript";
else if (path.endsWith(".json")) return "application/json";
else if (path.endsWith(".png")) return "image/png"; else if (path.endsWith(".png")) return "image/png";
else if (path.endsWith(".gif")) return "image/gif"; else if (path.endsWith(".gif")) return "image/gif";
else if (path.endsWith(".jpg")) return "image/jpeg"; else if (path.endsWith(".jpg")) return "image/jpeg";