Commit 5faa2de3 authored by Sergey Lyubka's avatar Sergey Lyubka

Directory request closes the connection

parent fbe059ac
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment