Parsing auth header - fix issue 206, IE case

This commit is contained in:
Sergey Lyubka 2010-11-29 14:28:52 +01:00
parent d31ac3f021
commit db1c0806ef

View File

@ -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] == ',') {