Change linux target

This commit is contained in:
Sergey Lyubka committed 2022-06-01 16:25:04 +01:00
1 parent 4dd1891594
commit 55517d48ed
3 files changed
+6 -5

No files matched your search

+1
View File
@@ -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);