summaryrefslogtreecommitdiff
path: root/src/gns/plugin_rest_gns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/plugin_rest_gns.c')
-rw-r--r--src/gns/plugin_rest_gns.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gns/plugin_rest_gns.c b/src/gns/plugin_rest_gns.c
index 1a5ee9eea..d7fc31d4c 100644
--- a/src/gns/plugin_rest_gns.c
+++ b/src/gns/plugin_rest_gns.c
@@ -648,7 +648,6 @@ libgnunet_plugin_rest_gns_init (void *cls)
api->cls = &plugin;
api->name = API_NAMESPACE;
api->process_request = &rest_gns_process_request;
- GNUNET_asprintf (&api->allow_methods, "%s", MHD_HTTP_METHOD_GET);
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
_("GNS REST API initialized\n"));
return api;
@@ -668,7 +667,6 @@ libgnunet_plugin_rest_gns_done (void *cls)
struct Plugin *plugin = api->cls;
plugin->cfg = NULL;
- GNUNET_free_non_null (api->allow_methods);
GNUNET_free (api);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"GNS REST plugin is finished\n");