diff options
author | Elias Summermatter <elias.summermatter@seccom.ch> | 2021-03-31 11:17:24 +0200 |
---|---|---|
committer | Elias Summermatter <elias.summermatter@seccom.ch> | 2021-03-31 11:17:24 +0200 |
commit | 26d2c0d58612fb233cc25b2739bcf96693f5cd85 (patch) | |
tree | 16baec844f4a5d9b5383d91589fe4c8f74eec725 /src/peerinfo-tool | |
parent | b5660e0a33f4c7a819de0b5056172f78f912e352 (diff) | |
parent | ca4c9eae269c34765df26699fe756860c7827693 (diff) | |
download | gnunet-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.c | 4 |
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); |