From cc5ac06014983a96a1a89746a4470b39f5888b6b Mon Sep 17 00:00:00 2001 From: Ondrej Novy Date: Wed, 19 Aug 2015 16:56:58 +0200 Subject: [PATCH] Fix https URL. --- src/httptail/httptail.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httptail/httptail.go b/src/httptail/httptail.go index 9baf9af..e766bed 100644 --- a/src/httptail/httptail.go +++ b/src/httptail/httptail.go @@ -29,7 +29,7 @@ func main() { //url = "http://tedb.us/foo.txt" log.Fatal("URL must be specified, e.g. httptail http://example.com/foo.txt") } - if strings.Index(url, "http://") != 0 { + if strings.Index(url, "http://") != 0 && strings.Index(url, "https://") != 0 { url = "http://" + url } if *debug {