aboutsummaryrefslogtreecommitdiff
path: root/src/rest
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2020-05-09 20:55:08 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-05-09 20:55:08 +0200
commit63c92bbef932b831de7741ecc45c21915bfda82a (patch)
tree9de65a8bfc8e86215e29d0b09f6546b3f1db2cfc /src/rest
parentd528c78ecfa75878e1bb4ea605bcafbbb2e63371 (diff)
downloadgnunet-63c92bbef932b831de7741ecc45c21915bfda82a.tar.gz
gnunet-63c92bbef932b831de7741ecc45c21915bfda82a.zip
add json response headers to rest plugins
Diffstat (limited to 'src/rest')
-rw-r--r--src/rest/plugin_rest_config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rest/plugin_rest_config.c b/src/rest/plugin_rest_config.c
index d89c858ee..43dea1b9f 100644
--- a/src/rest/plugin_rest_config.c
+++ b/src/rest/plugin_rest_config.c
@@ -175,6 +175,7 @@ get_cont (struct GNUNET_REST_RequestHandle *con_handle,
175 } 175 }
176 response = json_dumps (result, 0); 176 response = json_dumps (result, 0);
177 resp = GNUNET_REST_create_response (response); 177 resp = GNUNET_REST_create_response (response);
178 MHD_add_response_header (resp, "Content-Type", "application/json");
178 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK); 179 handle->proc (handle->proc_cls, resp, MHD_HTTP_OK);
179 cleanup_handle (handle); 180 cleanup_handle (handle);
180 GNUNET_free (response); 181 GNUNET_free (response);