Skip to content

Commit 00429e8

Browse files
committed
Merge pull request #1772 from gmag11/patch-2
Add more file types handling
2 parents 67107ba + 18d984a commit 00429e8

File tree

1 file changed

+4
-0
lines changed
  • libraries/ESP8266WebServer/examples/SDWebServer/SdRoot/edit

1 file changed

+4
-0
lines changed

libraries/ESP8266WebServer/examples/SDWebServer/SdRoot/edit/index.htm

+4
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,11 @@
451451
switch(ext){
452452
case "txt":
453453
case "htm":
454+
case "html":
454455
case "js":
456+
case "json":
455457
case "c":
458+
case "h":
456459
case "cpp":
457460
case "css":
458461
case "xml":
@@ -469,6 +472,7 @@
469472
case "png":
470473
case "jpg":
471474
case "gif":
475+
case "ico":
472476
return true;
473477
}
474478
}

0 commit comments

Comments
 (0)