mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
esp32: fix basic auth
This commit is contained in:
parent
7bc6383759
commit
658b86ed9f
1 changed files with 2 additions and 2 deletions
|
@ -643,7 +643,7 @@ lws_find_string_in_file(const char *filename, const char *string, int stringlen)
|
|||
const char *p = strchr(string, ':'), *q;
|
||||
|
||||
if (!p)
|
||||
return 1;
|
||||
return 0;
|
||||
|
||||
q = string;
|
||||
n = 0;
|
||||
|
@ -658,7 +658,7 @@ lws_find_string_in_file(const char *filename, const char *string, int stringlen)
|
|||
nvs_close(nvh);
|
||||
|
||||
if (n != ESP_OK)
|
||||
return 2;
|
||||
return 0;
|
||||
|
||||
return !strcmp(p + 1, result);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue