mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-15 02:08:08 +08:00
Parsing auth header - fix issue 206, IE case
This commit is contained in:
parent
d31ac3f021
commit
db1c0806ef
@ -2057,7 +2057,7 @@ static int parse_auth_header(struct mg_connection *conn, char *buf,
|
||||
// Parse authorization header
|
||||
for (;;) {
|
||||
name = skip(&s, "=");
|
||||
value = skip(&s, " ");
|
||||
value = skip(&s, ", "); // IE uses commas, FF uses spaces
|
||||
|
||||
// Handle commas: Digest username="a", realm="b", ...
|
||||
if (value[strlen(value) - 1] == ',') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user