diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-05-21 14:49:10 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-05-21 14:49:57 +0200 |
commit | 11c2eb216866721083e4764d09628e1b0092e0a7 (patch) | |
tree | 6fdf82457e525f1e466dfb045fe33506a820c7e7 /src/lib/merchant_api_refund.c | |
parent | 07f3974c54b8bf4084ddc452cf1f10263c20050d (diff) | |
download | merchant-11c2eb216866721083e4764d09628e1b0092e0a7.tar.gz merchant-11c2eb216866721083e4764d09628e1b0092e0a7.tar.bz2 merchant-11c2eb216866721083e4764d09628e1b0092e0a7.zip |
Attempting refund increase on a non existent order id.
Diffstat (limited to 'src/lib/merchant_api_refund.c')
-rw-r--r-- | src/lib/merchant_api_refund.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/merchant_api_refund.c b/src/lib/merchant_api_refund.c index e3a09d6f..812176f9 100644 --- a/src/lib/merchant_api_refund.c +++ b/src/lib/merchant_api_refund.c @@ -122,10 +122,11 @@ handle_refund_increase_finished (void *cls, "Backend didn't even return from POST /refund\n"); return; - /* Tolerate Bad Request here in order to let - * test cases move along. */ + /* Good to hand everything to the callback, as all + * the logic is actually there. */ case MHD_HTTP_OK: case MHD_HTTP_BAD_REQUEST: + case MHD_HTTP_NOT_FOUND: rio->cb (rio->cb_cls, response_code, TALER_EC_NONE, |