-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,10 +1137,14 @@ handle_mhd_request (void *cls,
return TALER_MHD_reply_cors_preflight (connection);
}
GNUNET_assert (NULL != rh->method);
if (0 == strcasecmp (method,
if (0 != strcasecmp (method,
rh->method))
/* cache to avoid the loop next time */
rc->rh = rh;
{
found = true;
continue;
}
/* cache to avoid the loop next time */
rc->rh = rh;
/* run handler */
return proceed_with_handler (rc,
url + tok_size + 1,