From d8f1f7b761a41fc027c53dcd85c2b07dd73c6d1b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 17 May 2022 11:21:20 +0200 Subject: integrate purse expiration into test, bugfixes --- src/lib/exchange_api_purses_get.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/exchange_api_purses_get.c') diff --git a/src/lib/exchange_api_purses_get.c b/src/lib/exchange_api_purses_get.c index db511128..021954c2 100644 --- a/src/lib/exchange_api_purses_get.c +++ b/src/lib/exchange_api_purses_get.c @@ -169,6 +169,11 @@ handle_purse_get_finished (void *cls, /* Exchange does not know about transaction; we should pass the reply to the application */ break; + case MHD_HTTP_GONE: + /* purse expired */ + dr.hr.ec = TALER_JSON_get_error_code (j); + dr.hr.hint = TALER_JSON_get_error_hint (j); + break; case MHD_HTTP_INTERNAL_SERVER_ERROR: dr.hr.ec = TALER_JSON_get_error_code (j); dr.hr.hint = TALER_JSON_get_error_hint (j); -- cgit v1.2.3