diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-10-22 13:21:09 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-10-22 13:21:09 +0200 |
commit | 3d1443d4e6ee87a59bc4cc604f0f675067c5f57d (patch) | |
tree | efe7ccf9ae1d7bc381491296770c81b9891ea541 /src | |
parent | dec5dc025a22ba3e952fb2631d60f5f7415f99f5 (diff) | |
download | exchange-3d1443d4e6ee87a59bc4cc604f0f675067c5f57d.tar.xz |
-fix bad method handling in kyc-tester
Diffstat (limited to 'src')
-rw-r--r-- | src/kyclogic/taler-exchange-kyc-tester.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/kyclogic/taler-exchange-kyc-tester.c b/src/kyclogic/taler-exchange-kyc-tester.c index e9178d4e5..2aed8d961 100644 --- a/src/kyclogic/taler-exchange-kyc-tester.c +++ b/src/kyclogic/taler-exchange-kyc-tester.c @@ -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, |