8000 ESP8266WebServer: add application/json content type · FelipeSchneider/Arduino@0fa3443 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0fa3443

Browse files
wuwxigrr
authored andcommitted
ESP8266WebServer: add application/json content type
1 parent f3be2cd commit 0fa3443

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ class StaticRequestHandler : public RequestHandler {
121121
else if (path.endsWith(".css")) return "text/css";
122122
else if (path.endsWith(".txt")) return "text/plain";
123123
else if (path.endsWith(".js")) return "application/javascript";
124+
else if (path.endsWith(".json")) return "application/json";
124125
else if (path.endsWith(".png")) return "image/png";
125126
else if (path.endsWith(".gif")) return "image/gif";
126127
else if (path.endsWith(".jpg")) return "image/jpeg";

0 commit comments

Comments
 (0)
0