From e2e55a56c262b439b95f37ccc9dd2ae3db5a5ce7 Mon Sep 17 00:00:00 2001 From: Matthias Schneider Date: Thu, 2 Jul 2020 10:51:18 +0200 Subject: [PATCH] biturl api change: fixes #9 --- urlshortener/biturl/biturl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urlshortener/biturl/biturl.go b/urlshortener/biturl/biturl.go index 22a71c3..2823170 100644 --- a/urlshortener/biturl/biturl.go +++ b/urlshortener/biturl/biturl.go @@ -30,7 +30,7 @@ func (b *BitURL) GetName() string { // ShortURL maks http post to biturl.top to get short url func (b *BitURL) ShortURL() (string, error) { - resp, err := http.Post(fmt.Sprintf("https://biturl.top/short?url=%s", b.URL), "", nil) + resp, err := http.Post(fmt.Sprintf("https://api.biturl.top/short?url=%s", b.URL), "", nil) if err != nil { return "", err }