Add struct mg_http_serve_opts::extra_headers

This commit is contained in:
cpq committed 2021-03-10 07:56:14 +00:00
1 parent f326cbedbe
commit 6366c832b0
7 files changed
+29 -20

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ static const char *s_ssi_pattern = "#.shtml";
static void cb(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
if (ev == MG_EV_HTTP_MSG) {
struct mg_http_serve_opts opts = {s_root_dir, s_ssi_pattern};
struct mg_http_serve_opts opts = {s_root_dir, s_ssi_pattern, NULL};
mg_http_serve_dir(c, ev_data, &opts);
}
(void) fn_data;