From 068433c5e7c99866a58d6be146fe25b36bb4d5b8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 2 Feb 2021 15:07:24 +0100 Subject: add rudimentary test logic for #6731 --- src/lib/merchant_api_merchant_get_order.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/lib/merchant_api_merchant_get_order.c') diff --git a/src/lib/merchant_api_merchant_get_order.c b/src/lib/merchant_api_merchant_get_order.c index 9504d16b..ac7da14f 100644 --- a/src/lib/merchant_api_merchant_get_order.c +++ b/src/lib/merchant_api_merchant_get_order.c @@ -375,6 +375,14 @@ handle_merchant_order_get_finished (void *cls, omgh->job = NULL; switch (response_code) { + case MHD_HTTP_OK: + /* see below */ + break; + case MHD_HTTP_UNAUTHORIZED: + hr.ec = TALER_JSON_get_error_code (json); + hr.hint = TALER_JSON_get_error_hint (json); + /* Nothing really to verify, merchant says we need to authenticate. */ + break; case MHD_HTTP_NOT_FOUND: hr.ec = TALER_JSON_get_error_code (json); hr.hint = TALER_JSON_get_error_hint (json); @@ -383,9 +391,6 @@ handle_merchant_order_get_finished (void *cls, NULL); TALER_MERCHANT_merchant_order_get_cancel (omgh); return; - case MHD_HTTP_OK: - /* see below */ - break; default: hr.ec = TALER_JSON_get_error_code (json); hr.hint = TALER_JSON_get_error_hint (json); -- cgit v1.2.3