mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-15 02:08:08 +08:00
Directory request closes the connection
This commit is contained in:
parent
fbe059acaa
commit
5faa2de3f5
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user