Update packed fs

This commit is contained in:
Sergey Lyubka committed 2022-02-14 17:44:43 +00:00
1 parent 4fec149345
commit a76ade9bb2
6 files changed
+34 -13

No files matched your search

+1 -1
View File
@@ -1559,7 +1559,7 @@ static void eh7(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
struct mg_http_message *hm = (struct mg_http_message *) ev_data;
struct mg_http_serve_opts sopts;
memset(&sopts, 0, sizeof(sopts));
sopts.root_dir = "";
sopts.root_dir = "/";
sopts.fs = &mg_fs_packed;
mg_http_serve_dir(c, hm, &sopts);
}