Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-johan-grahn committed Dec 16, 2024
1 parent bf4e528 commit 02468a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/kube/wrappers/routeWrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,10 @@ func (rw *RouteWrapper) GetURL(forceHttps bool, healthEndpoint string) string {
u.Path = path.Join(u.Path, healthEndpoint)
}
}
return url.PathUnescape(u.String())
path, err := url.PathUnescape(u.String())
if err != nil {
log.Info(fmt.Sprintf("Error in unescaping path :%v", err))
return ""
}
return path
}

0 comments on commit 02468a3

Please sign in to comment.