From e3a5234db02d7405b83cd1f7b8466334fb77b5cd Mon Sep 17 00:00:00 2001 From: Daniel Rocha Date: Wed, 17 Jun 2020 20:13:44 +0200 Subject: [PATCH] Default to https instead of http --- htp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htp.go b/htp.go index eea9392..b5792a0 100644 --- a/htp.go +++ b/htp.go @@ -26,7 +26,7 @@ type options struct { func main() { opts := parseArgs() if strings.Index(opts.host, "://") == -1 { - opts.host = "http://" + opts.host + opts.host = "https://" + opts.host } logger := log.New(os.Stderr, "", 0)