[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: comment
From: |
gnunet |
Subject: |
[libeufin] branch master updated: comment |
Date: |
Sat, 18 Sep 2021 12:53:30 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 9662e15 comment
9662e15 is described below
commit 9662e153767ee417fb2557801213bc8b9930d10d
Author: ms <ms@taler.net>
AuthorDate: Sat Sep 18 12:53:24 2021 +0200
comment
---
util/src/main/kotlin/HTTP.kt | 1 +
1 file changed, 1 insertion(+)
diff --git a/util/src/main/kotlin/HTTP.kt b/util/src/main/kotlin/HTTP.kt
index c788342..045e92a 100644
--- a/util/src/main/kotlin/HTTP.kt
+++ b/util/src/main/kotlin/HTTP.kt
@@ -29,6 +29,7 @@ fun getAuthorizationHeader(request: ApplicationRequest):
String {
fun extractUserAndPassword(authorizationHeader: String): Pair<String, String> {
logger.debug("Authenticating: $authorizationHeader")
val (username, password) = try {
+ // FIXME/note: line below doesn't check for "Basic" presence.
val split = authorizationHeader.split(" ")
val plainUserAndPass = String(base64ToBytes(split[1]), Charsets.UTF_8)
val ret = plainUserAndPass.split(":")
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.