diff --git a/src/WebHandlerImpl.h b/src/WebHandlerImpl.h index 5b18687..d03b19f 100644 --- a/src/WebHandlerImpl.h +++ b/src/WebHandlerImpl.h @@ -35,7 +35,7 @@ class AsyncStaticWebHandler : public AsyncWebHandler { private: bool _getFile(AsyncWebServerRequest* request) const; - bool _fileExists(AsyncWebServerRequest* request, const String& path); + bool _searchFile(AsyncWebServerRequest* request, const String& path); uint8_t _countBits(const uint8_t value) const; protected: diff --git a/src/WebHandlers.cpp b/src/WebHandlers.cpp index bd3be20..0e18ed0 100644 --- a/src/WebHandlers.cpp +++ b/src/WebHandlers.cpp @@ -122,7 +122,7 @@ bool AsyncStaticWebHandler::_getFile(AsyncWebServerRequest* request) const { path = _path + path; // Do we have a file or .gz file - if (!canSkipFileCheck && const_cast(this)->_fileExists(request, path)) + if (!canSkipFileCheck && const_cast(this)->_searchFile(request, path)) return true; // Can't handle if not default file @@ -134,7 +134,7 @@ bool AsyncStaticWebHandler::_getFile(AsyncWebServerRequest* request) const { path += String('/'); path += _default_file; - return const_cast(this)->_fileExists(request, path); + return const_cast(this)->_searchFile(request, path); } #ifdef ESP32 @@ -143,7 +143,7 @@ bool AsyncStaticWebHandler::_getFile(AsyncWebServerRequest* request) const { #define FILE_IS_REAL(f) (f == true) #endif -bool AsyncStaticWebHandler::_fileExists(AsyncWebServerRequest* request, const String& path) { +bool AsyncStaticWebHandler::_searchFile(AsyncWebServerRequest* request, const String& path) { bool fileFound = false; bool gzipFound = false;