mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-16 10:39:49 +00:00
Mark request close for HTTP redirects
This commit is contained in:
1 parent
76e6b23a4f
commit
41ea8de0d6
2 files changed
+2
No files matched your search
@@ -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 &&
|
||||
|
||||
Reference in new issue
Block a user