fix where file will not be served if only gzipped version exists. Thanks @andig

This commit is contained in:
Me No Dev 2016-01-23 19:06:57 +02:00
parent 4298d0a037
commit 3c658dcae8
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class AsyncStaticWebHandler: public AsyncWebHandler {
public:
AsyncStaticWebHandler(FS& fs, const char* path, const char* uri, const char* cache_header)
: _fs(fs), _uri(uri), _path(path), _cache_header(cache_header){
_isFile = _fs.exists(path);
_isFile = _fs.exists(path) || _fs.exists(path+".gz");
}
bool canHandle(AsyncWebServerRequest *request);
void handleRequest(AsyncWebServerRequest *request);