aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo-tool
diff options
context:
space:
mode:
authorElias Summermatter <elias.summermatter@seccom.ch>2021-03-31 11:17:24 +0200
committerElias Summermatter <elias.summermatter@seccom.ch>2021-03-31 11:17:24 +0200
commit26d2c0d58612fb233cc25b2739bcf96693f5cd85 (patch)
tree16baec844f4a5d9b5383d91589fe4c8f74eec725 /src/peerinfo-tool
parentb5660e0a33f4c7a819de0b5056172f78f912e352 (diff)
parentca4c9eae269c34765df26699fe756860c7827693 (diff)
downloadgnunet-26d2c0d58612fb233cc25b2739bcf96693f5cd85.tar.gz
gnunet-26d2c0d58612fb233cc25b2739bcf96693f5cd85.zip
Merge branch 'master' of ssh://gnunet.org/gnunet
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r--src/peerinfo-tool/plugin_rest_peerinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/peerinfo-tool/plugin_rest_peerinfo.c b/src/peerinfo-tool/plugin_rest_peerinfo.c
index 4bbc7442e..f969a175b 100644
--- a/src/peerinfo-tool/plugin_rest_peerinfo.c
+++ b/src/peerinfo-tool/plugin_rest_peerinfo.c
@@ -379,7 +379,9 @@ peerinfo_list_finished (void *cls)
379 result_str = json_dumps (handle->response, 0); 379 result_str = json_dumps (handle->response, 0);
380 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Result %s\n", result_str); 380 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Result %s\n", result_str);
381 resp = GNUNET_REST_create_response (result_str); 381 resp = GNUNET_REST_create_response (result_str);
382 MHD_add_response_header (resp, "Content-Type", "application/json"); 382 GNUNET_assert (MHD_NO != MHD_add_response_header (resp,
383 "Content-Type",
384 "application/json"));
383 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); 385 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK);
384 GNUNET_free (result_str); 386 GNUNET_free (result_str);
385 GNUNET_SCHEDULER_add_now (&cleanup_handle, handle); 387 GNUNET_SCHEDULER_add_now (&cleanup_handle, handle);