Commit 8ed68293 authored by Sergey Lyubka's avatar Sergey Lyubka

Fix #448

parent f7476f53
...@@ -3850,6 +3850,7 @@ void mg_send_digest_auth_request(struct mg_connection *c) { ...@@ -3850,6 +3850,7 @@ void mg_send_digest_auth_request(struct mg_connection *c) {
c->status_code = 401; c->status_code = 401;
mg_printf(c, mg_printf(c,
"HTTP/1.1 401 Unauthorized\r\n" "HTTP/1.1 401 Unauthorized\r\n"
"Content-Length: 0\r\n"
"WWW-Authenticate: Digest qop=\"auth\", " "WWW-Authenticate: Digest qop=\"auth\", "
"realm=\"%s\", nonce=\"%lu\"\r\n\r\n", "realm=\"%s\", nonce=\"%lu\"\r\n\r\n",
conn->server->config_options[AUTH_DOMAIN], conn->server->config_options[AUTH_DOMAIN],
......
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