浏览代码

Removed test cruft for MG_OPEN_FILE message from the event handler

Sergey Lyubka 12 年之前
父节点
当前提交
043ea54a2a
共有 1 个文件被更改,包括 0 次插入6 次删除
  1. 0 6
      main.c

+ 0 - 6
main.c

@@ -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;