mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-01 00:48:17 +02:00
validate: fix typo
This commit is contained in:
parent
513d8bf615
commit
cc6a264e17
1 changed files with 2 additions and 2 deletions
|
@ -69,10 +69,10 @@ func ValidateURL(u *url.URL) error {
|
|||
return fmt.Errorf("nil url")
|
||||
}
|
||||
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 == "" {
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue