mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-13 10:15:00 +00:00
Add extra param to http_reply()
This commit is contained in:
1 parent
29d31ba919
commit
82a378e519
9 files changed
+47
-40
No files matched your search
@@ -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!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user