Removed test cruft for MG_OPEN_FILE message from the event handler

This commit is contained in:
Sergey Lyubka committed 2012-09-29 22:24:16 +01:00
1 parent 55c8c82c4b
commit 043ea54a2a
1 file changed
-6
-6
View File
@@ -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);
}
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
// proceed with handling it.
return NULL;