mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-05 18:29:34 +01:00
fix BitlyURLShortener
This commit is contained in:
parent
f570c81366
commit
eb91eefc80
@ -23,7 +23,7 @@ public class BitlyURLShortener extends HttpAPIClient implements URLShortener {
|
||||
public String shorten(String longUrl) {
|
||||
try {
|
||||
String result = this.exec(longUrl);
|
||||
if (!result.startsWith("http://j.mp/")) // ... then it's failed :/
|
||||
if (!result.startsWith("https://j.mp/")) // ... then it's failed :/
|
||||
throw new IOException(result);
|
||||
return result;
|
||||
} catch (IOException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user