mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-26 12:14:56 +00:00
Untie dash.c from packed fs
This commit is contained in:
1 parent
c9f89166f4
commit
5a2e42ae25
5 files changed
+12
-10
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user