You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h
+4-3
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
4
4
#include"RequestHandler.h"
5
5
#include"mimetable.h"
6
+
#include"WString.h"
6
7
7
8
usingnamespacemime;
8
9
@@ -101,10 +102,10 @@ class StaticRequestHandler : public RequestHandler {
101
102
102
103
// look for gz file, only if the original specified path is not a gz. So part only works to send gzip via content encoding when a non compressed is asked for
103
104
// if you point the the path to gzip you will serve the gzip as content type "application/x-gzip", not text or javascript etc...
104
-
if (!path.endsWith(mimeTable[gz].endsWith) && !_fs.exists(path)) {
0 commit comments