mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-25 20:28:27 +00:00
Fix server_example.md
PUBLISHED_FROM=dfbfeaae983daa0412964ac0402759f632bf7aeb
This commit is contained in:
1 parent
874b5bfdbf
commit
f7c0a2ee15
1 file changed
+2
-2
@@ -30,8 +30,8 @@ static void ev_handler(struct mg_connection *c, int ev, void *p) {
|
|||||||
|
|
||||||
// We have received an HTTP request. Parsed request is contained in `hm`.
|
// We have received an HTTP request. Parsed request is contained in `hm`.
|
||||||
// Send HTTP reply to the client which shows full original request.
|
// Send HTTP reply to the client which shows full original request.
|
||||||
mg_send_head(c, 200, hm.message.len, "Content-Type: text/plain");
|
mg_send_head(c, 200, hm->message.len, "Content-Type: text/plain");
|
||||||
mg_printf(c, "%.*s", hm.message.len, hm.message.p);
|
mg_printf(c, "%.*s", (int)hm->message.len, hm->message.p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user