From f6935dac7c7178ca442f854e19218972e11eff12 Mon Sep 17 00:00:00 2001 From: avgur Date: Wed, 4 Sep 2019 18:01:37 +0300 Subject: [PATCH] allows to test https service (#18) --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 520e11f..29b1b7f 100644 --- a/main.go +++ b/main.go @@ -44,7 +44,7 @@ func main() { if config.Host == "" { log.Fatal(errors.New("service hostname not provided")) } else { - if !strings.HasPrefix(config.Host, "http://") { + if !strings.HasPrefix(config.Host, "http://") && !strings.HasPrefix(config.Host, "https://") { config.Host = "http://" + config.Host } config.Host = strings.TrimRight(config.Host, "/")