diff options
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/taler-merchant-httpd_pay.c | 6 | ||||
-rw-r--r-- | src/backend/taler-merchant-httpd_proposal.c | 6 | ||||
-rw-r--r-- | src/backend/taler-merchant-httpd_track-transfer.c | 1 |
3 files changed, 6 insertions, 7 deletions
diff --git a/src/backend/taler-merchant-httpd_pay.c b/src/backend/taler-merchant-httpd_pay.c index 97b7ac4d..837b17d7 100644 --- a/src/backend/taler-merchant-httpd_pay.c +++ b/src/backend/taler-merchant-httpd_pay.c @@ -1316,12 +1316,10 @@ handler_pay_json (struct MHD_Connection *connection, and accept immediately */ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Payment succeeded in the past; taking short cut"); - resp = MHD_create_response_from_buffer (0, - NULL, - MHD_RESPMEM_PERSISTENT); + resp = sign_success_response (pc); ret = MHD_queue_response (connection, MHD_HTTP_OK, - sign_success_response (pc)); + resp); MHD_destroy_response (resp); return ret; } diff --git a/src/backend/taler-merchant-httpd_proposal.c b/src/backend/taler-merchant-httpd_proposal.c index e2332efc..a4311795 100644 --- a/src/backend/taler-merchant-httpd_proposal.c +++ b/src/backend/taler-merchant-httpd_proposal.c @@ -1,6 +1,6 @@ /* This file is part of TALER - (C) 2014, 2015, 2016 INRIA + (C) 2014, 2015, 2016, 2017 INRIA TALER is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software @@ -14,7 +14,7 @@ TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ /** - * @file backend/taler-merchant-httpd_propose.c + * @file backend/taler-merchant-httpd_proposal.c * @brief HTTP serving layer mainly intended to communicate with the frontend * @author Marcello Stanisci */ @@ -455,4 +455,4 @@ MH_handler_proposal_lookup (struct TMH_RequestHandler *rh, } -/* end of taler-merchant-httpd_contract.c */ +/* end of taler-merchant-httpd_proposal.c */ diff --git a/src/backend/taler-merchant-httpd_track-transfer.c b/src/backend/taler-merchant-httpd_track-transfer.c index a0dadabe..5eeff5b1 100644 --- a/src/backend/taler-merchant-httpd_track-transfer.c +++ b/src/backend/taler-merchant-httpd_track-transfer.c @@ -719,6 +719,7 @@ proof_cb (void *cls, rctx->response_code = MHD_HTTP_OK; rctx->response = TMH_RESPONSE_make_json (transformed_response); + json_decref (transformed_response); } |