mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-03 20:36:03 +02:00
validate: fix typo (#4963)
This commit is contained in:
parent
513d8bf615
commit
b6c100d880
1 changed files with 2 additions and 2 deletions
|
@ -69,10 +69,10 @@ func ValidateURL(u *url.URL) error {
|
||||||
return fmt.Errorf("nil url")
|
return fmt.Errorf("nil url")
|
||||||
}
|
}
|
||||||
if u.Scheme == "" {
|
if u.Scheme == "" {
|
||||||
return fmt.Errorf("%s url does contain a valid scheme", u.String())
|
return fmt.Errorf("%s url does not contain a valid scheme", u.String())
|
||||||
}
|
}
|
||||||
if u.Host == "" {
|
if u.Host == "" {
|
||||||
return fmt.Errorf("%s url does contain a valid hostname", u.String())
|
return fmt.Errorf("%s url does not contain a valid hostname", u.String())
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue