diff options
Diffstat (limited to 'internal/util/util.go')
| -rw-r--r-- | internal/util/util.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/util/util.go b/internal/util/util.go index 01b2f21..4370fd1 100644 --- a/internal/util/util.go +++ b/internal/util/util.go @@ -24,7 +24,8 @@ func EnsureValidURL(s string) (string, error) { return "", errors.WrapPrefix(err, "failed parsing url", 0) } - if u.Scheme == "" { + // Make sure the scheme is always https + if u.Scheme != "https" { u.Scheme = "https" } if u.Path != "" { |
