[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: fix headers
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: fix headers |
Date: |
Wed, 07 Mar 2018 19:24:59 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 59fc22ce3 fix headers
59fc22ce3 is described below
commit 59fc22ce3f63e4a281927ac8d919720fcaf14c64
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Wed Mar 7 19:24:57 2018 +0100
fix headers
---
src/identity-provider/plugin_rest_openid_connect.c | 4 ++--
src/rest/gnunet-rest-server.c | 8 ++++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/identity-provider/plugin_rest_openid_connect.c
b/src/identity-provider/plugin_rest_openid_connect.c
index 81cb7af55..7e8054e60 100644
--- a/src/identity-provider/plugin_rest_openid_connect.c
+++ b/src/identity-provider/plugin_rest_openid_connect.c
@@ -141,12 +141,12 @@
/**
* OIDC cookie header key
*/
-#define OIDC_COOKIE_HEADER_KEY "Cookie"
+#define OIDC_COOKIE_HEADER_KEY "cookie"
/**
* OIDC cookie header information key
*/
-#define OIDC_AUTHORIZATION_HEADER_KEY "Authorization"
+#define OIDC_AUTHORIZATION_HEADER_KEY "authorization"
/**
* OIDC cookie header information key
diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c
index 325bcfd0a..da75edf81 100644
--- a/src/rest/gnunet-rest-server.c
+++ b/src/rest/gnunet-rest-server.c
@@ -237,8 +237,11 @@ header_iterator (void *cls,
struct GNUNET_REST_RequestHandle *handle = cls;
struct GNUNET_HashCode hkey;
char *val;
+ char *lowerkey;
- GNUNET_CRYPTO_hash (key, strlen (key), &hkey);
+ lowerkey = GNUNET_strdup (key);
+ GNUNET_STRINGS_utf8_tolower (key, lowerkey);
+ GNUNET_CRYPTO_hash (lowerkey, strlen (lowerkey), &hkey);
GNUNET_asprintf (&val, "%s", value);
if (GNUNET_OK !=
GNUNET_CONTAINER_multihashmap_put (handle->header_param_map,
@@ -248,8 +251,9 @@ header_iterator (void *cls,
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Could not load add header `%s'=%s\n",
- key, value);
+ lowerkey, value);
}
+ GNUNET_free (lowerkey);
return MHD_YES;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: fix headers,
gnunet <=