Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Fix authenticate. #17

Merged
merged 1 commit into from
Mar 18, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/WebRequest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ void AsyncWebServerRequest::sendChunked(String contentType, AwsResponseFiller ca
bool AsyncWebServerRequest::authenticate(const char * username, const char * password){
if(_authorization.length()){
char toencodeLen = os_strlen(username)+os_strlen(password)+1;
char *toencode = new char[toencodeLen];
char *toencode = new char[toencodeLen+1];
if(toencode == NULL){
return false;
}
Expand Down