From 18d984a9aaf9f387e80a734776d8896ce0375819 Mon Sep 17 00:00:00 2001 From: gmag11 Date: Mon, 14 Mar 2016 14:00:57 +0100 Subject: [PATCH] Add more file types handling Add correct handling for *.json *.h *.html and *.ico --- .../examples/SDWebServer/SdRoot/edit/index.htm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/ESP8266WebServer/examples/SDWebServer/SdRoot/edit/index.htm b/libraries/ESP8266WebServer/examples/SDWebServer/SdRoot/edit/index.htm index 5b8432a69..76182a764 100644 --- a/libraries/ESP8266WebServer/examples/SDWebServer/SdRoot/edit/index.htm +++ b/libraries/ESP8266WebServer/examples/SDWebServer/SdRoot/edit/index.htm @@ -451,8 +451,11 @@ switch(ext){ case "txt": case "htm": + case "html": case "js": + case "json": case "c": + case "h": case "cpp": case "css": case "xml": @@ -469,6 +472,7 @@ case "png": case "jpg": case "gif": + case "ico": return true; } }