Fix comment of isHTTPSURL

pull/6/head
xufei 2017-08-03 14:56:45 +08:00 committed by fisherxu
parent 7bc1c67685
commit 8ea31945be
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ func GetValidatedClusterInfoObject(cfg *kubeadmapi.NodeConfiguration) (*clientcm
}
}
// isHTTPSURL checks whether the string is parsable as an URL
// isHTTPSURL checks whether the string is parsable as an URL and whether the Scheme is https
func isHTTPSURL(s string) bool {
u, err := url.Parse(s)
return err == nil && u.Scheme == "https"