Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/xyz/fragbots/api/FragBotsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class FragBotsApi {
private static List<BotGsonObj> botListCache = null;
//Gets the raw JsonObject from the backend feel free to use this in your own creations!
public static JsonObject readBotsList() throws ApiReturnError {
String resp = Request.getRequest("https://api.fragbots.xyz/v2/botslist");
String resp = Request.getRequest("http://api.fragbots.xyz/v2/botslist");
if(resp == null){
throw new ApiReturnError("API returned null");
}
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/xyz/fragbots/api/Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ public static String getRequest(String urlString) {
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setConnectTimeout(5000);
conn.setRequestMethod("GET");
conn.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11");
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String input;
StringBuilder response = new StringBuilder();
Expand All @@ -48,7 +47,6 @@ public static JsonObject getRequestJson(String urlString) {
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setConnectTimeout(5000);
conn.setRequestMethod("GET");
conn.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11");
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String input;
StringBuilder response = new StringBuilder();
Expand Down