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_delete_product.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/merchant_api_delete_product.c') diff --git a/src/lib/merchant_api_delete_product.c b/src/lib/merchant_api_delete_product.c index 196ec09d..ba2aaaf4 100644 --- a/src/lib/merchant_api_delete_product.c +++ b/src/lib/merchant_api_delete_product.c @@ -91,6 +91,11 @@ handle_delete_product_finished (void *cls, { case MHD_HTTP_NO_CONTENT: 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); -- cgit v1.2.3