diff options
Diffstat (limited to 'src/mhd/mhd_responses.c')
-rw-r--r-- | src/mhd/mhd_responses.c | 15 |
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 | ||
222 | MHD_RESULT | 222 | MHD_RESULT |
223 | TALER_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 | |||
237 | MHD_RESULT | ||
223 | TALER_MHD_reply_cors_preflight (struct MHD_Connection *connection) | 238 | TALER_MHD_reply_cors_preflight (struct MHD_Connection *connection) |
224 | { | 239 | { |
225 | struct MHD_Response *response; | 240 | struct MHD_Response *response; |