summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-05-11 19:19:22 +0200
committerChristian Grothoff <christian@grothoff.org>2021-05-11 19:19:22 +0200
commit906e3035a6fc8941f3a72c13ae3908b4e7f687b1 (patch)
tree8fbcfd9f0a4249ec727f7bb69b9994ca53a9b707 /src/lib
parent5463f26b493405db1010576fb489e7fd98a47724 (diff)
downloadmerchant-906e3035a6fc8941f3a72c13ae3908b4e7f687b1.tar.gz
merchant-906e3035a6fc8941f3a72c13ae3908b4e7f687b1.tar.bz2
merchant-906e3035a6fc8941f3a72c13ae3908b4e7f687b1.zip
fix #6861, maybe #6854
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/merchant_api_delete_instance.c4
-rw-r--r--src/lib/merchant_api_get_instances.c4
-rw-r--r--src/lib/merchant_api_patch_order_forget.c4
3 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/merchant_api_delete_instance.c b/src/lib/merchant_api_delete_instance.c
index d83ea467..b0458a62 100644
--- a/src/lib/merchant_api_delete_instance.c
+++ b/src/lib/merchant_api_delete_instance.c
@@ -96,12 +96,14 @@ handle_delete_instance_finished (void *cls,
hr.hint = TALER_JSON_get_error_hint (json);
/* Nothing really to verify, merchant says we need to authenticate. */
break;
+ case MHD_HTTP_NOT_FOUND:
+ break;
default:
/* unexpected response code */
hr.ec = TALER_JSON_get_error_code (json);
hr.hint = TALER_JSON_get_error_hint (json);
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Unexpected response code %u/%d\n",
+ "Unexpected response code %u/%d for DELETE /instance/ID\n",
(unsigned int) response_code,
(int) hr.ec);
break;
diff --git a/src/lib/merchant_api_get_instances.c b/src/lib/merchant_api_get_instances.c
index be8b6e5b..a8eaa608 100644
--- a/src/lib/merchant_api_get_instances.c
+++ b/src/lib/merchant_api_get_instances.c
@@ -205,6 +205,10 @@ handle_instances_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);
+ break;
default:
/* unexpected response code */
hr.ec = TALER_JSON_get_error_code (json);
diff --git a/src/lib/merchant_api_patch_order_forget.c b/src/lib/merchant_api_patch_order_forget.c
index ddb26062..69563aaf 100644
--- a/src/lib/merchant_api_patch_order_forget.c
+++ b/src/lib/merchant_api_patch_order_forget.c
@@ -101,6 +101,10 @@ handle_forget_finished (void *cls,
hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE;
break;
case MHD_HTTP_OK:
+ /* fields were NOW forgotten */
+ break;
+ case MHD_HTTP_NO_CONTENT:
+ /* fields were already forgotten before */
break;
case MHD_HTTP_BAD_REQUEST:
hr.ec = TALER_JSON_get_error_code (json);