From 5faa2de3f52d954d38634aee38b85bf340ca9cd6 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Sun, 4 Mar 2012 16:24:18 +0000 Subject: [PATCH] Directory request closes the connection --- mongoose.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mongoose.c b/mongoose.c index aa0cbe0e..445d6c19 100644 --- a/mongoose.c +++ b/mongoose.c @@ -2449,6 +2449,7 @@ static void handle_directory_request(struct mg_connection *conn, sort_direction = conn->request_info.query_string != NULL && conn->request_info.query_string[1] == 'd' ? 'a' : 'd'; + conn->must_close = 1; mg_printf(conn, "%s", "HTTP/1.1 200 OK\r\n" "Connection: close\r\n"