Skip to content

Commit 92fad11

Browse files
change isHttpPrefixedURL to isHttpSchemedURL
1 parent 59d0119 commit 92fad11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: pkg/minikube/service/service.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -242,16 +242,16 @@ func WaitAndMaybeOpenService(api libmachine.API, namespace string, service strin
242242
return errors.Wrap(err, "Check that minikube is running and that you have specified the correct namespace")
243243
}
244244
for _, urlString := range urls {
245-
isHttpPrefixedURL := false
245+
isHttpSchemedURL := false
246246
if u, parseErr := url.Parse(urlString); parseErr == nil {
247-
isHttpPrefixedURL = u.Scheme == "http"
247+
isHttpSchemedURL = u.Scheme == "http"
248248
}
249249

250-
if isHttpPrefixedURL && https {
250+
if isHttpSchemedURL && https {
251251
urlString = strings.Replace(urlString, "http", "https", 1)
252252
}
253253

254-
if urlMode || !isHttpPrefixedURL {
254+
if urlMode || !isHttpSchemedURL {
255255
fmt.Fprintln(os.Stdout, urlString)
256256
} else {
257257
fmt.Fprintln(os.Stderr, "Opening kubernetes service "+namespace+"/"+service+" in default browser...")

0 commit comments

Comments
 (0)