mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-25 12:04:47 +00:00
MG_REQ_BEGIN -> MG_REQUEST, killed MG_REQ_END, add MG_REPLY. Restored server test
This commit is contained in:
1 parent
65f484291f
commit
e41df3cf9c
9 files changed
+60
-59
No files matched your search
+1
-1
@@ -5,7 +5,7 @@
|
||||
static int ev_handler(struct mg_connection *conn, enum mg_event ev) {
|
||||
int result = MG_FALSE;
|
||||
|
||||
if (ev == MG_REQ_BEGIN) {
|
||||
if (ev == MG_REQUEST) {
|
||||
mg_printf_data(conn, "Hello! Requested URI is [%s]", conn->uri);
|
||||
result = MG_TRUE;
|
||||
} else if (ev == MG_AUTH) {
|
||||
|
||||
Reference in new issue
Block a user