Skip to content

Commit 67d898d

Browse files
committed
hidden_domain: normalize host to lowercase
1 parent f072bce commit 67d898d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

auth/basic.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ func matchHiddenDomain(host, hidden_domain string) bool {
120120
if h, _, err := net.SplitHostPort(host); err == nil {
121121
host = h
122122
}
123+
host = strings.ToLower(host)
123124
return subtle.ConstantTimeCompare([]byte(host), []byte(hidden_domain)) == 1
124125
}
125126

0 commit comments

Comments
 (0)