diff options
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-get-webhooks-ID.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-get-webhooks-ID.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/backend/taler-merchant-httpd_private-get-webhooks-ID.c b/src/backend/taler-merchant-httpd_private-get-webhooks-ID.c index 94371e9e..e1566efd 100644 --- a/src/backend/taler-merchant-httpd_private-get-webhooks-ID.c +++ b/src/backend/taler-merchant-httpd_private-get-webhooks-ID.c @@ -72,10 +72,12 @@ TMH_private_get_webhooks_ID (const struct TMH_RequestHandler *rh, wb.url), GNUNET_JSON_pack_string ("http_method", wb.http_method), - GNUNET_JSON_pack_string ("header_template", - wb.header_template), - GNUNET_JSON_pack_string ("body_template", - wb.body_template)); + GNUNET_JSON_pack_allow_null ( + GNUNET_JSON_pack_string ("header_template", + wb.header_template)), + GNUNET_JSON_pack_allow_null ( + GNUNET_JSON_pack_string ("body_template", + wb.body_template))); GNUNET_free (wb.event_type); GNUNET_free (wb.url); GNUNET_free (wb.http_method); |