Add extra param to http_reply()

This commit is contained in:
cpq committed 2020-12-17 22:47:55 +00:00
1 parent 29d31ba919
commit 82a378e519
9 files changed
+47 -40

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@
// Event handler for an accepted connection
static void cb(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
if (ev == MG_EV_HTTP_MSG) {
mg_http_reply(c, 200, "Hello from ESP32!");
mg_http_reply(c, 200, "", "Hello from ESP32!");
}
}