This commit is contained in:
Ghost_chu committed 2021-02-26 19:11:00 +08:00
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;
}
}