aboutsummaryrefslogtreecommitdiff
path: root/src/mhd/mhd_responses.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mhd/mhd_responses.c')
-rw-r--r--src/mhd/mhd_responses.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mhd/mhd_responses.c b/src/mhd/mhd_responses.c
index 6b96de55d..b7ff52e66 100644
--- a/src/mhd/mhd_responses.c
+++ b/src/mhd/mhd_responses.c
@@ -220,6 +220,21 @@ TALER_MHD_reply_json (struct MHD_Connection *connection,
220 220
221 221
222MHD_RESULT 222MHD_RESULT
223TALER_MHD_reply_json_steal (struct MHD_Connection *connection,
224 json_t *json,
225 unsigned int response_code)
226{
227 MHD_RESULT ret;
228
229 ret = TALER_MHD_reply_json (connection,
230 json,
231 response_code);
232 json_decref (json);
233 return ret;
234}
235
236
237MHD_RESULT
223TALER_MHD_reply_cors_preflight (struct MHD_Connection *connection) 238TALER_MHD_reply_cors_preflight (struct MHD_Connection *connection)
224{ 239{
225 struct MHD_Response *response; 240 struct MHD_Response *response;