From e3eccfd476471595639f1ce7089278a3a6400de7 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 31 Dec 2016 17:23:38 +1100 Subject: [PATCH] Fix debugpaste --- .../com/intellectualcrafters/plot/util/HastebinUtility.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/util/HastebinUtility.java b/Core/src/main/java/com/intellectualcrafters/plot/util/HastebinUtility.java index 71e605598..8f83b8928 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/util/HastebinUtility.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/util/HastebinUtility.java @@ -10,7 +10,7 @@ import java.util.regex.Pattern; public class HastebinUtility { - public static final String BIN_URL = "http://hastebin.com/documents", USER_AGENT = "Mozilla/5.0"; + public static final String BIN_URL = "https://hastebin.com/documents", USER_AGENT = "Mozilla/5.0"; public static final Pattern PATTERN = Pattern.compile("\\{\"key\":\"([\\S\\s]*)\"\\}"); public static String upload(final String string) throws IOException { @@ -38,12 +38,12 @@ public class HastebinUtility { Matcher matcher = PATTERN.matcher(response.toString()); if (matcher.matches()) { - return "http://hastebin.com/" + matcher.group(1); + return "https://hastebin.com/" + matcher.group(1); } else { throw new RuntimeException("Couldn't read response!"); } } - + public static String upload(final File file) throws IOException { final StringBuilder content = new StringBuilder(); List lines = new ArrayList<>();