Browse Source

Fix DEBUG_ASSERT

see https://github.com/civetweb/civetweb/issues/941#issuecomment-746014323
bel2125 4 years ago
parent
commit
efc8904363
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -14035,7 +14035,7 @@ mg_set_handler_type(struct mg_context *phys_ctx,
 		DEBUG_ASSERT(handler == NULL);
 		DEBUG_ASSERT(connect_handler == NULL && ready_handler == NULL
 		             && data_handler == NULL && close_handler == NULL);
-		DEBUG_ASSERT(!is_delete_request && (auth_handler != NULL));
+		DEBUG_ASSERT(is_delete_request || (auth_handler != NULL));
 		if (handler != NULL) {
 			return;
 		}