Skip to content

Commit

Permalink
fix: use equalfold
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Feb 26, 2021
1 parent 0681c12 commit 1c0e52e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ func (p *Config) SelfPublicURL(r *http.Request) *url.URL {

for _, a := range aliases {
hostname, _, _ := net.SplitHostPort(r.Host)
if strings.ToLower(a.MatchDomain) == strings.ToLower(hostname) || strings.ToLower(a.MatchDomain) == strings.ToLower(r.Host) {
if strings.EqualFold(a.MatchDomain, hostname) || strings.EqualFold(a.MatchDomain, r.Host) {
parsed := &url.URL{
Scheme: a.Scheme,
Host: r.Host,
Expand Down

0 comments on commit 1c0e52e

Please sign in to comment.