Commit db1c0806 authored by Sergey Lyubka's avatar Sergey Lyubka

Parsing auth header - fix issue 206, IE case

parent d31ac3f0
...@@ -2057,7 +2057,7 @@ static int parse_auth_header(struct mg_connection *conn, char *buf, ...@@ -2057,7 +2057,7 @@ static int parse_auth_header(struct mg_connection *conn, char *buf,
// Parse authorization header // Parse authorization header
for (;;) { for (;;) {
name = skip(&s, "="); name = skip(&s, "=");
value = skip(&s, " "); value = skip(&s, ", "); // IE uses commas, FF uses spaces
// Handle commas: Digest username="a", realm="b", ... // Handle commas: Digest username="a", realm="b", ...
if (value[strlen(value) - 1] == ',') { if (value[strlen(value) - 1] == ',') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment