From 67b37d5a428abf91452bef10d67b82c8c338990d Mon Sep 17 00:00:00 2001
From: Renan DelValle <renanidelvalle+noreply@gmail.com>
Date: Mon, 17 Dec 2018 18:06:40 -0800
Subject: [PATCH] Improving detection of protocol to not accidentally add one
 protocol in front of the other.

---
 util.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util.go b/util.go
index bc93677..324b12f 100644
--- a/util.go
+++ b/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
 	}