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