From b598bbdfc85133b09fdc415f773024523a72adee Mon Sep 17 00:00:00 2001 From: Mikhail Klementyev Date: Wed, 27 Jul 2016 21:36:37 +0300 Subject: [PATCH] Use https protocol instead of http as default scheme --- commands/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/commands.go b/commands/commands.go index 6d26031..8d10eab 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -82,7 +82,7 @@ func Get(db *sql.DB, url string) { client := &http.Client{} if !strings.Contains(url, "://") { - url = "http://" + url + url = "https://" + url } // TODO Full url encoding