-fix bad method handling in kyc-tester

This commit is contained in:
Christian Grothoff 2022-10-22 13:21:09 +02:00
parent dec5dc025a
commit 3d1443d4e6
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1137,8 +1137,12 @@ handle_mhd_request (void *cls,
return TALER_MHD_reply_cors_preflight (connection); return TALER_MHD_reply_cors_preflight (connection);
} }
GNUNET_assert (NULL != rh->method); GNUNET_assert (NULL != rh->method);
if (0 == strcasecmp (method, if (0 != strcasecmp (method,
rh->method)) rh->method))
{
found = true;
continue;
}
/* cache to avoid the loop next time */ /* cache to avoid the loop next time */
rc->rh = rh; rc->rh = rh;
/* run handler */ /* run handler */