mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-01 05:52:32 +07:00
Untie dash.c from packed fs
This commit is contained in:
@@ -190,6 +190,7 @@ void mg_dash_init(struct mg_mgr *mgr) {
|
||||
// Require authentication
|
||||
dash.authenticate = authenticate;
|
||||
|
||||
mg_mem_files = mg_packed_files;
|
||||
mg_http_listen(mgr, MG_HTTP_ADDR, mg_dash_ev_handler, &dash);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ static struct mg_field_set field_set_status = {
|
||||
void mg_dash_init(struct mg_mgr *mgr) {
|
||||
static struct mg_dash dash; // Important: keep it static!
|
||||
MG_DASH_ADD_FIELD_SET(&dash, &field_set_status);
|
||||
mg_mem_files = mg_packed_files;
|
||||
mg_http_listen(mgr, MG_HTTP_ADDR, mg_dash_ev_handler, &dash);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user