From 23a3cc64729d8ecfa5565655dc13824739276933 Mon Sep 17 00:00:00 2001 From: valenok Date: Sat, 18 Jun 2011 10:21:13 +0100 Subject: [PATCH] Added "Content-Length: 0" to the authorization reply to make it keep-alive friendly --- mongoose.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mongoose.c b/mongoose.c index 3c61a09c..9b7a284d 100644 --- a/mongoose.c +++ b/mongoose.c @@ -2215,6 +2215,7 @@ static void send_authorization_request(struct mg_connection *conn) { conn->request_info.status_code = 401; (void) mg_printf(conn, "HTTP/1.1 401 Unauthorized\r\n" + "Content-Length: 0\r\n" "WWW-Authenticate: Digest qop=\"auth\", " "realm=\"%s\", nonce=\"%lu\"\r\n\r\n", conn->ctx->config[AUTHENTICATION_DOMAIN],