mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
Bug fix
This commit is contained in:
1 parent
12707c61f0
commit
bbc31682e2
1 file changed
+3
-2
@@ -41,13 +41,14 @@ public class PastebinPaster implements PasteInterface {
|
||||
.add("api_paste_code", text)
|
||||
)
|
||||
.execute();
|
||||
String str = request.returnContent().asString("UTF-8");
|
||||
try {
|
||||
request.expectResponseCode(200);
|
||||
} catch (Exception ex) {
|
||||
Util.debugLog(request.returnContent().asString("UTF-8"));
|
||||
Util.debugLog(str);
|
||||
return null;
|
||||
}
|
||||
return request.returnContent().asString("UTF-8");
|
||||
return str;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user