Renamed _fielExists into _searchFile

This commit is contained in:
Mathieu Carbou
2024-10-23 10:29:46 +02:00
parent ea7a593b4e
commit c8f263eeb5
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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<AsyncStaticWebHandler*>(this)->_fileExists(request, path))
if (!canSkipFileCheck && const_cast<AsyncStaticWebHandler*>(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<AsyncStaticWebHandler*>(this)->_fileExists(request, path);
return const_cast<AsyncStaticWebHandler*>(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;