Improving detection of protocol to not accidentally add one protocol in front of the other.
This commit is contained in:
parent
56b325ed80
commit
67b37d5a42
1 changed files with 1 additions and 1 deletions
2
util.go
2
util.go
|
@ -43,7 +43,7 @@ func init() {
|
|||
func validateAndPopulateAuroraURL(urlStr string) (string, error) {
|
||||
|
||||
// If no protocol defined, assume http
|
||||
if !(strings.HasPrefix(urlStr, "http") || strings.HasPrefix(urlStr, "https")) {
|
||||
if !strings.Contains(urlStr, "://") {
|
||||
urlStr = "http://" + urlStr
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue