fix header check in param map
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Thu, 27 Jun 2019 08:54:20 +0000 (10:54 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Thu, 27 Jun 2019 08:54:20 +0000 (10:54 +0200)
src/rest/gnunet-rest-server.c

index 9bf7dec50a31ef3840681fc7fc8c11b6e23cc669..89a2db3d9fc94fc0f6eaa95c25e46555e8c64c11 100644 (file)
@@ -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,