fix: apply toLower to all domains

This commit is contained in:
Oleh Astappiev 2024-12-08 17:41:28 +01:00
parent 465ea8b64e
commit b0f0510e8e
No known key found for this signature in database
GPG key ID: 37D7AC22589E9632

View file

@ -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)?`