oops again

This commit is contained in:
Me No Dev 2016-01-23 19:08:28 +02:00
parent 3c658dcae8
commit 154ac0060f
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) || _fs.exists(path+".gz");
_isFile = _fs.exists(path) || _fs.exists((String(path)+".gz").c_str());
}
bool canHandle(AsyncWebServerRequest *request);
void handleRequest(AsyncWebServerRequest *request);