This commit is contained in:
Sergey Lyubka committed 2015-03-21 13:17:24 +00:00
1 parent f7476f53c7
commit 8ed682930b
1 file changed
+1
+1
View File
@@ -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],