Untie dash.c from packed fs

This commit is contained in:
cpq committed 2026-05-03 08:40:24 +01:00
1 parent c9f89166f4
commit 5a2e42ae25
5 files changed
+12 -10

No files matched your search

+1 -1
View File
@@ -1,4 +1,5 @@
#include "dash.h"
#include "util.h"
#define MG_NO_CACHE_HEADERS "Cache-Control: no-cache\r\n"
#define MG_JSON_HEADERS "Content-Type: application/json\r\n" MG_NO_CACHE_HEADERS
@@ -453,7 +454,6 @@ void mg_dash_ev_handler(struct mg_connection *c, int ev, void *ev_data) {
struct mg_http_serve_opts opts;
memset(&opts, 0, sizeof(opts));
opts.fs = &mg_fs_packed;
mg_mem_files = mg_packed_files;
mg_http_serve_file(c, hm, "/dashboard.html", &opts);
} else {
struct mg_dash_custom_handler *ch = dash->custom_handlers;