1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-19 14:59:20 +00:00
This commit is contained in:
Camotoy
2021-09-24 16:15:50 -04:00
parent 32d5720083
commit f4734722cc

View File

@@ -78,6 +78,8 @@ public class HttpUtils {
connection.setRequestMethod("GET"); connection.setRequestMethod("GET");
connection.setUseCaches(false); connection.setUseCaches(false);
connection.setRequestProperty("User-Agent", USER_AGENT); connection.setRequestProperty("User-Agent", USER_AGENT);
connection.setConnectTimeout(3000);
connection.setReadTimeout(5000);
} catch (Exception exception) { } catch (Exception exception) {
throw new RuntimeException("Failed to create request", exception); throw new RuntimeException("Failed to create request", exception);
} }