diff --git a/cmd/bs1in/bs1in.go b/cmd/bs1in/bs1in.go index 1555169..5ac4b47 100644 --- a/cmd/bs1in/bs1in.go +++ b/cmd/bs1in/bs1in.go @@ -76,8 +76,7 @@ func handleLinkList(w http.ResponseWriter, r *http.Request) { url := r.PostForm.Get("url") desc := r.PostForm.Get("description") - if !strings.HasPrefix(url, "http://") || - !strings.HasPrefix(url, "https://") { + if !strings.HasPrefix(url, "http") { url = "https://" + url }