diff options
Diffstat (limited to 'src/mhd/mhd_responses.c')
-rw-r--r-- | src/mhd/mhd_responses.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mhd/mhd_responses.c b/src/mhd/mhd_responses.c index b7ff52e66..c993436cd 100644 --- a/src/mhd/mhd_responses.c +++ b/src/mhd/mhd_responses.c | |||
@@ -148,6 +148,17 @@ TALER_MHD_make_json (const json_t *json) | |||
148 | } | 148 | } |
149 | 149 | ||
150 | 150 | ||
151 | struct MHD_Response * | ||
152 | TALER_MHD_make_json_steal (json_t *json) | ||
153 | { | ||
154 | struct MHD_Response *res; | ||
155 | |||
156 | res = TALER_MHD_make_json (json); | ||
157 | json_decref (json); | ||
158 | return res; | ||
159 | } | ||
160 | |||
161 | |||
151 | MHD_RESULT | 162 | MHD_RESULT |
152 | TALER_MHD_reply_json (struct MHD_Connection *connection, | 163 | TALER_MHD_reply_json (struct MHD_Connection *connection, |
153 | const json_t *json, | 164 | const json_t *json, |