Merge pull request #1899 from cesanta/castREADME

Update README.md
This commit is contained in:
Sergio R. Caprile authored and GitHub committed 2022-12-04 19:17:23 -03:00
commit ad051269ed
1 file changed
+1 -1
+1 -1
View File
@@ -42,7 +42,7 @@ into the source code tree
static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
struct mg_http_serve_opts opts = {.root_dir = "."}; // Serve local dir
if (ev == MG_EV_HTTP_MSG) mg_http_serve_dir(c, ev_data, &opts);
if (ev == MG_EV_HTTP_MSG) mg_http_serve_dir(c, (struct mg_http_message *)ev_data, &opts);
}
...