From b0f0510e8e12c767872587010bdfac16a2da92da Mon Sep 17 00:00:00 2001 From: Oleh Astappiev Date: Sun, 8 Dec 2024 17:41:28 +0100 Subject: [PATCH] fix: apply `toLower` to all domains --- umami_send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umami_send.go b/umami_send.go index bb9bebd..944efde 100644 --- a/umami_send.go +++ b/umami_send.go @@ -41,7 +41,7 @@ func parseDomainFromHost(host string) string { if strings.Contains(host, ":") { host = strings.Split(host, ":")[0] } - return host + return strings.ToLower(host) } const parseAcceptLanguagePattern = `([a-zA-Z\-]+)(?:;q=\d\.\d)?(?:,\s)?`