mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-07-31 03:07:32 +02:00
Renamed _fielExists into _searchFile
This commit is contained in:
@ -35,7 +35,7 @@ class AsyncStaticWebHandler : public AsyncWebHandler {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
bool _getFile(AsyncWebServerRequest* request) const;
|
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;
|
uint8_t _countBits(const uint8_t value) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -122,7 +122,7 @@ bool AsyncStaticWebHandler::_getFile(AsyncWebServerRequest* request) const {
|
|||||||
path = _path + path;
|
path = _path + path;
|
||||||
|
|
||||||
// Do we have a file or .gz file
|
// 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;
|
return true;
|
||||||
|
|
||||||
// Can't handle if not default file
|
// Can't handle if not default file
|
||||||
@ -134,7 +134,7 @@ bool AsyncStaticWebHandler::_getFile(AsyncWebServerRequest* request) const {
|
|||||||
path += String('/');
|
path += String('/');
|
||||||
path += _default_file;
|
path += _default_file;
|
||||||
|
|
||||||
return const_cast<AsyncStaticWebHandler*>(this)->_fileExists(request, path);
|
return const_cast<AsyncStaticWebHandler*>(this)->_searchFile(request, path);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ESP32
|
#ifdef ESP32
|
||||||
@ -143,7 +143,7 @@ bool AsyncStaticWebHandler::_getFile(AsyncWebServerRequest* request) const {
|
|||||||
#define FILE_IS_REAL(f) (f == true)
|
#define FILE_IS_REAL(f) (f == true)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool AsyncStaticWebHandler::_fileExists(AsyncWebServerRequest* request, const String& path) {
|
bool AsyncStaticWebHandler::_searchFile(AsyncWebServerRequest* request, const String& path) {
|
||||||
bool fileFound = false;
|
bool fileFound = false;
|
||||||
bool gzipFound = false;
|
bool gzipFound = false;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user