forked from me-no-dev/ESPAsyncWebServer
fix typos
This commit is contained in:
@@ -77,7 +77,7 @@ bool AsyncStaticWebHandler::_getFile(AsyncWebServerRequest *request)
|
||||
path += "/";
|
||||
path += "index.htm";
|
||||
|
||||
return_fileExists(request, path);
|
||||
return _fileExists(request, path);
|
||||
}
|
||||
|
||||
bool AsyncStaticWebHandler::_fileExists(AsyncWebServerRequest *request, const String path)
|
||||
|
@@ -95,7 +95,7 @@ AsyncWebServerRequest::~AsyncWebServerRequest(){
|
||||
}
|
||||
|
||||
if(_tempObject != NULL){
|
||||
delete _tempObject;
|
||||
free(_tempObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -381,9 +381,9 @@ AsyncFileResponse::AsyncFileResponse(File content, String contentType, bool down
|
||||
_content = content;
|
||||
_path = String(_content.name());
|
||||
_contentLength = _content.size();
|
||||
int filenameStart = path.lastIndexOf('/') + 1;
|
||||
char buf[26+path.length()-filenameStart];
|
||||
char* filename = (char*)path.c_str() + filenameStart;
|
||||
int filenameStart = _path.lastIndexOf('/') + 1;
|
||||
char buf[26+_path.length()-filenameStart];
|
||||
char* filename = (char*)_path.c_str() + filenameStart;
|
||||
|
||||
if(!download && _path.endsWith(".gz"))
|
||||
addHeader("Content-Encoding", "gzip");
|
||||
|
Reference in New Issue
Block a user