diff options
Diffstat (limited to 'src/authorization/anastasis_authorization_plugin_file.c')
-rw-r--r-- | src/authorization/anastasis_authorization_plugin_file.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/authorization/anastasis_authorization_plugin_file.c b/src/authorization/anastasis_authorization_plugin_file.c index 210ade7..15c22a1 100644 --- a/src/authorization/anastasis_authorization_plugin_file.c +++ b/src/authorization/anastasis_authorization_plugin_file.c @@ -209,13 +209,9 @@ file_process (struct ANASTASIS_AUTHORIZATION_State *as, if (TALER_MHD_xmime_matches (mime, "application/json")) { - json_t *body; - - body = json_pack ("{s:s}", - "filename", - as->filename); - GNUNET_break (NULL != body); - resp = TALER_MHD_make_json (body); + resp = TALER_MHD_MAKE_JSON_PACK ( + GNUNET_JSON_pack_string ("filename", + as->filename)); } else { |