File tree 1 file changed +6
-0
lines changed
libraries/ESP8266WebServer/src/detail
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,12 @@ class StaticRequestHandler : public RequestHandler {
123
123
else if (path.endsWith (" .jpg" )) return " image/jpeg" ;
124
124
else if (path.endsWith (" .ico" )) return " image/x-icon" ;
125
125
else if (path.endsWith (" .svg" )) return " image/svg+xml" ;
126
+ else if (path.endsWith (" .ttf" )) return " application/x-font-ttf" ;
127
+ else if (path.endsWith (" .otf" )) return " application/x-font-opentype" ;
128
+ else if (path.endsWith (" .woff" )) return " application/font-woff" ;
129
+ else if (path.endsWith (" .woff2" )) return " application/font-woff2" ;
130
+ else if (path.endsWith (" .eot" )) return " application/vnd.ms-fontobject" ;
131
+ else if (path.endsWith (" .sfnt" )) return " application/font-sfnt" ;
126
132
else if (path.endsWith (" .xml" )) return " text/xml" ;
127
133
else if (path.endsWith (" .pdf" )) return " application/pdf" ;
128
134
else if (path.endsWith (" .zip" )) return " application/zip" ;
You can’t perform that action at this time.
0 commit comments