aboutsummaryrefslogtreecommitdiff
path: root/server/src/net/usebox/gemini
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-11-24 19:26:43 +0000
committerJuan J. Martinez <jjm@usebox.net>2021-11-24 19:26:43 +0000
commitfc72e681017e4253980ba7943549f6716c959b6a (patch)
tree8a365bb800bf38723700042443dcfb481eeba2b4 /server/src/net/usebox/gemini
parente57871745cb5fd64ab7df4b3c0634e46f6747cd5 (diff)
downloadspacebeans-fc72e681017e4253980ba7943549f6716c959b6a.tar.gz
spacebeans-fc72e681017e4253980ba7943549f6716c959b6a.zip
Fix: host subcompoent in the URL is case insensitive
Referemce: https://datatracker.ietf.org/doc/html/rfc3986/#section-3.2.2
Diffstat (limited to 'server/src/net/usebox/gemini')
-rw-r--r--server/src/net/usebox/gemini/server/Server.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/net/usebox/gemini/server/Server.scala b/server/src/net/usebox/gemini/server/Server.scala
index a14d829..ce840df 100644
--- a/server/src/net/usebox/gemini/server/Server.scala
+++ b/server/src/net/usebox/gemini/server/Server.scala
@@ -72,7 +72,7 @@ case class Server(conf: ServiceConf) {
uri.getScheme(),
uri.getHost(),
uri.getPath().decode(),
- vHosts.find(_.host == uri.getHost())
+ vHosts.find(_.host == uri.getHost().toLowerCase)
) match {
case (null, _, _, _) =>
logger.debug(s"no scheme")