Mark request close for HTTP redirects

This commit is contained in:
cpq committed 2022-11-20 12:18:15 +00:00
1 parent 76e6b23a4f
commit 41ea8de0d6
2 files changed
+2

No files matched your search

+1
View File
@@ -684,6 +684,7 @@ static int uri_to_path2(struct mg_connection *c, struct mg_http_message *hm,
"Content-Length: 0\r\n"
"\r\n",
(int) hm->uri.len, hm->uri.ptr);
c->is_resp = 0;
flags = -1;
} else if (flags & MG_FS_DIR) {
if (((mg_snprintf(path + n, path_size - n, "/" MG_HTTP_INDEX) > 0 &&