summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_get_orders.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-02-02 15:07:24 +0100
committerChristian Grothoff <christian@grothoff.org>2021-02-02 15:07:24 +0100
commit068433c5e7c99866a58d6be146fe25b36bb4d5b8 (patch)
treeff7b102d567a96c0bd83b38b6e5e22b5d8d67168 /src/lib/merchant_api_get_orders.c
parent96726fd5ab6dc067af4957c3d1826f9fd2745c95 (diff)
downloadmerchant-068433c5e7c99866a58d6be146fe25b36bb4d5b8.tar.gz
merchant-068433c5e7c99866a58d6be146fe25b36bb4d5b8.tar.bz2
merchant-068433c5e7c99866a58d6be146fe25b36bb4d5b8.zip
add rudimentary test logic for #6731
Diffstat (limited to 'src/lib/merchant_api_get_orders.c')
-rw-r--r--src/lib/merchant_api_get_orders.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/merchant_api_get_orders.c b/src/lib/merchant_api_get_orders.c
index 420510bd..c7b04ab2 100644
--- a/src/lib/merchant_api_get_orders.c
+++ b/src/lib/merchant_api_get_orders.c
@@ -192,6 +192,11 @@ handle_get_orders_finished (void *cls,
GNUNET_JSON_parse_free (spec);
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);