diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-02-04 20:57:11 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-02-04 20:57:11 +0100 |
commit | 9bfeec352b95873bc94b96947a8dd335838f3e8b (patch) | |
tree | 2b265b0db13c1268968d26f73f1bde0b029c4ddf /src/exchange/taler-exchange-httpd_mhd.c | |
parent | 5a11839002b2f327fa35e8a1bf589bb77c54e3c1 (diff) | |
download | exchange-9bfeec352b95873bc94b96947a8dd335838f3e8b.tar.gz exchange-9bfeec352b95873bc94b96947a8dd335838f3e8b.tar.bz2 exchange-9bfeec352b95873bc94b96947a8dd335838f3e8b.zip |
fix #6065
Diffstat (limited to 'src/exchange/taler-exchange-httpd_mhd.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_mhd.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/exchange/taler-exchange-httpd_mhd.c b/src/exchange/taler-exchange-httpd_mhd.c index 53944b6a7..0f2ce033a 100644 --- a/src/exchange/taler-exchange-httpd_mhd.c +++ b/src/exchange/taler-exchange-httpd_mhd.c @@ -128,11 +128,10 @@ TEH_MHD_handler_send_json_pack_error (struct TEH_RequestHandler *rh, (void) connection_cls; (void) upload_data; (void) upload_data_size; - return TALER_MHD_reply_json_pack (connection, - rh->response_code, - "{s:s}", - "error", - rh->data); + return TALER_MHD_reply_with_error (connection, + rh->response_code, + TALER_EC_METHOD_INVALID, + rh->data); } |