mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-21 11:30:01 +00:00
Change linux target
This commit is contained in:
1 parent
4dd1891594
commit
55517d48ed
3 files changed
+6
-5
No files matched your search
@@ -685,6 +685,7 @@ void mg_http_serve_dir(struct mg_connection *c, struct mg_http_message *hm,
|
||||
if (flags < 0) {
|
||||
// Do nothing: the response has already been sent by uri_to_path()
|
||||
} else if (flags == 0) {
|
||||
// File not found - serve 404
|
||||
mg_http_serve_file(c, hm, opts->page404, opts);
|
||||
} else if (flags & MG_FS_DIR) {
|
||||
listdir(c, hm, opts, path);
|
||||
|
||||
Reference in new issue
Block a user