Explorar o código

Fix DEBUG_ASSERT

see https://github.com/civetweb/civetweb/issues/941#issuecomment-746014323
bel2125 %!s(int64=4) %!d(string=hai) anos
pai
achega
efc8904363
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 		}