mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-07-29 18:27:34 +02:00
fix Digest authentication for IE
This commit is contained in:
@ -132,7 +132,7 @@ bool checkDigestAuthentication(const char * header, const char * method, const c
|
||||
}
|
||||
|
||||
String myHeader = String(header);
|
||||
int nextBreak = myHeader.indexOf(", ");
|
||||
int nextBreak = myHeader.indexOf(",");
|
||||
if(nextBreak < 0){
|
||||
//os_printf("AUTH FAIL: no variables\n");
|
||||
return false;
|
||||
@ -150,8 +150,9 @@ bool checkDigestAuthentication(const char * header, const char * method, const c
|
||||
myHeader += ", ";
|
||||
do {
|
||||
String avLine = myHeader.substring(0, nextBreak);
|
||||
myHeader = myHeader.substring(nextBreak+2);
|
||||
nextBreak = myHeader.indexOf(", ");
|
||||
avLine.trim();
|
||||
myHeader = myHeader.substring(nextBreak+1);
|
||||
nextBreak = myHeader.indexOf(",");
|
||||
|
||||
int eqSign = avLine.indexOf("=");
|
||||
if(eqSign < 0){
|
||||
|
Reference in New Issue
Block a user