diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2015-06-29 14:33:38 +0000 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2015-06-29 14:33:38 +0000 |
commit | 13aba2e2ba02476410ccee95974c7c5181f83fcf (patch) | |
tree | dd0285f8b00635452759ceebdd104c648b2e2f2a /src/gns/plugin_rest_gns.c | |
parent | d953fdc6293a9468019eebbcfed92c3b5387ec48 (diff) | |
download | gnunet-13aba2e2ba02476410ccee95974c7c5181f83fcf.tar.gz gnunet-13aba2e2ba02476410ccee95974c7c5181f83fcf.zip |
- add CORS logic
Diffstat (limited to 'src/gns/plugin_rest_gns.c')
-rw-r--r-- | src/gns/plugin_rest_gns.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gns/plugin_rest_gns.c b/src/gns/plugin_rest_gns.c index d7fc31d4c..1a5ee9eea 100644 --- a/src/gns/plugin_rest_gns.c +++ b/src/gns/plugin_rest_gns.c | |||
@@ -648,6 +648,7 @@ libgnunet_plugin_rest_gns_init (void *cls) | |||
648 | api->cls = &plugin; | 648 | api->cls = &plugin; |
649 | api->name = API_NAMESPACE; | 649 | api->name = API_NAMESPACE; |
650 | api->process_request = &rest_gns_process_request; | 650 | api->process_request = &rest_gns_process_request; |
651 | GNUNET_asprintf (&api->allow_methods, "%s", MHD_HTTP_METHOD_GET); | ||
651 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 652 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
652 | _("GNS REST API initialized\n")); | 653 | _("GNS REST API initialized\n")); |
653 | return api; | 654 | return api; |
@@ -667,6 +668,7 @@ libgnunet_plugin_rest_gns_done (void *cls) | |||
667 | struct Plugin *plugin = api->cls; | 668 | struct Plugin *plugin = api->cls; |
668 | 669 | ||
669 | plugin->cfg = NULL; | 670 | plugin->cfg = NULL; |
671 | GNUNET_free_non_null (api->allow_methods); | ||
670 | GNUNET_free (api); | 672 | GNUNET_free (api); |
671 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 673 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
672 | "GNS REST plugin is finished\n"); | 674 | "GNS REST plugin is finished\n"); |