[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-deployment] branch master updated: make ApiKey part
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-deployment] branch master updated: make ApiKey part case insensitive |
Date: |
Tue, 30 Jan 2018 00:25:48 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new 06bc7c4 make ApiKey part case insensitive
06bc7c4 is described below
commit 06bc7c4de7e40a362562df514d88a98e251f4b13
Author: Florian Dold <address@hidden>
AuthorDate: Tue Jan 30 00:25:32 2018 +0100
make ApiKey part case insensitive
---
etc/nginx/sites-enabled/test.site | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/etc/nginx/sites-enabled/test.site
b/etc/nginx/sites-enabled/test.site
index 8420010..bc2a5ca 100644
--- a/etc/nginx/sites-enabled/test.site
+++ b/etc/nginx/sites-enabled/test.site
@@ -223,7 +223,9 @@ server {
error_page 419 = @green;
recursive_error_pages on;
- if ($http_authorization != "ApiKey sandbox") {
+ # match the ApiKey part ignoring case, and the actual key
+ # with case-sensitivity on.
+ if ($http_authorization !~ "(?i)ApiKey (?-i)sandbox") {
return 401;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-deployment] branch master updated: make ApiKey part case insensitive,
gnunet <=