mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
Directory request closes the connection
This commit is contained in:
1 parent
fbe059acaa
commit
5faa2de3f5
1 file changed
+1
@@ -2449,6 +2449,7 @@ static void handle_directory_request(struct mg_connection *conn,
|
|||||||
sort_direction = conn->request_info.query_string != NULL &&
|
sort_direction = conn->request_info.query_string != NULL &&
|
||||||
conn->request_info.query_string[1] == 'd' ? 'a' : 'd';
|
conn->request_info.query_string[1] == 'd' ? 'a' : 'd';
|
||||||
|
|
||||||
|
conn->must_close = 1;
|
||||||
mg_printf(conn, "%s",
|
mg_printf(conn, "%s",
|
||||||
"HTTP/1.1 200 OK\r\n"
|
"HTTP/1.1 200 OK\r\n"
|
||||||
"Connection: close\r\n"
|
"Connection: close\r\n"
|
||||||
|
|||||||
Reference in new issue
Block a user