From fc72e681017e4253980ba7943549f6716c959b6a Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 24 Nov 2021 19:26:43 +0000 Subject: Fix: host subcompoent in the URL is case insensitive Referemce: https://datatracker.ietf.org/doc/html/rfc3986/#section-3.2.2 --- server/src/net/usebox/gemini/server/Server.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/net/usebox') 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") -- cgit v1.2.3