mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +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
@@ -2024,6 +2024,7 @@ static int uri_to_path2(struct mg_connection *c, struct mg_http_message *hm,
|
|||||||
"Content-Length: 0\r\n"
|
"Content-Length: 0\r\n"
|
||||||
"\r\n",
|
"\r\n",
|
||||||
(int) hm->uri.len, hm->uri.ptr);
|
(int) hm->uri.len, hm->uri.ptr);
|
||||||
|
c->is_resp = 0;
|
||||||
flags = -1;
|
flags = -1;
|
||||||
} else if (flags & MG_FS_DIR) {
|
} else if (flags & MG_FS_DIR) {
|
||||||
if (((mg_snprintf(path + n, path_size - n, "/" MG_HTTP_INDEX) > 0 &&
|
if (((mg_snprintf(path + n, path_size - n, "/" MG_HTTP_INDEX) > 0 &&
|
||||||
|
|||||||
@@ -684,6 +684,7 @@ static int uri_to_path2(struct mg_connection *c, struct mg_http_message *hm,
|
|||||||
"Content-Length: 0\r\n"
|
"Content-Length: 0\r\n"
|
||||||
"\r\n",
|
"\r\n",
|
||||||
(int) hm->uri.len, hm->uri.ptr);
|
(int) hm->uri.len, hm->uri.ptr);
|
||||||
|
c->is_resp = 0;
|
||||||
flags = -1;
|
flags = -1;
|
||||||
} else if (flags & MG_FS_DIR) {
|
} else if (flags & MG_FS_DIR) {
|
||||||
if (((mg_snprintf(path + n, path_size - n, "/" MG_HTTP_INDEX) > 0 &&
|
if (((mg_snprintf(path + n, path_size - n, "/" MG_HTTP_INDEX) > 0 &&
|
||||||
|
|||||||
Reference in new issue
Block a user