summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-06-27 10:54:20 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-06-27 10:54:20 +0200
commit9228812aedaff897fdfae2b626726561de3d826d (patch)
tree54488bb4b82485c14f7739dc2bebbd34165af0cb
parentb9771c5f5edcbeb965fa291a281943d866c3ddb6 (diff)
fix header check in param map
-rw-r--r--src/rest/gnunet-rest-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c
index 9bf7dec50..89a2db3d9 100644
--- a/src/rest/gnunet-rest-server.c
+++ b/src/rest/gnunet-rest-server.c
@@ -441,8 +441,8 @@ create_response (void *cls,
//Handle Preflights
if (GNUNET_YES == echo_origin)
{
- GNUNET_CRYPTO_hash (MHD_HTTP_HEADER_ORIGIN,
- strlen (MHD_HTTP_HEADER_ORIGIN),
+ GNUNET_CRYPTO_hash ("origin",
+ strlen ("origin"),
&key);
origin = GNUNET_CONTAINER_multihashmap_get (con_handle->data_handle
->header_param_map,