From 9a62da505241a2f3834f10d5671219f7ebb6e7f2 Mon Sep 17 00:00:00 2001 From: Florian Loch Date: Thu, 9 Feb 2023 07:05:43 +0100 Subject: [PATCH] feat: default to https as schema if none is set --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index c067f22..f3a328f 100644 --- a/main.go +++ b/main.go @@ -216,6 +216,10 @@ func main() { bodyBytes = []byte(*body) } + if !strings.Contains(strings.ToLower(*url), "://") { + *url = "https://" + *url + } + clientOpt := ClientOpt{ url: *url, method: *method,