Directory request closes the connection

This commit is contained in:
Sergey Lyubka 2012-03-04 16:24:18 +00:00
parent fbe059acaa
commit 5faa2de3f5

View File

@ -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"