mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-15 10:29:47 +00:00
Add struct mg_http_serve_opts::extra_headers
This commit is contained in:
1 parent
f326cbedbe
commit
6366c832b0
7 files changed
+29
-20
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user