mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-20 19:41:58 +00:00
Removed test cruft for MG_OPEN_FILE message from the event handler
This commit is contained in:
1 parent
55c8c82c4b
commit
043ea54a2a
1 file changed
-6
@@ -224,12 +224,6 @@ static void *mongoose_callback(enum mg_event ev, struct mg_connection *conn) {
|
|||||||
printf("%s\n", (const char *) mg_get_request_info(conn)->ev_data);
|
printf("%s\n", (const char *) mg_get_request_info(conn)->ev_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ev == MG_OPEN_FILE &&
|
|
||||||
!memcmp(mg_get_request_info(conn)->ev_data, "./x", 3)) {
|
|
||||||
mg_get_request_info(conn)->ev_data = (void *) (int) 5;
|
|
||||||
return "hello";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Returning NULL marks request as not handled, signalling mongoose to
|
// Returning NULL marks request as not handled, signalling mongoose to
|
||||||
// proceed with handling it.
|
// proceed with handling it.
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in new issue
Block a user