mirror of
https://github.com/cesanta/mongoose.git
synced 2026-12-04 21:58:22 +00:00
Fix #448
This commit is contained in:
1 parent
f7476f53c7
commit
8ed682930b
1 file changed
+1
@@ -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],
|
||||||
|
|||||||
Reference in new issue
Block a user