cleanup WebRequest
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 24s
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 24s
This commit is contained in:
@ -192,7 +192,7 @@ public class MojangService {
|
||||
Map<String, Boolean> endpoints = new HashMap<>();
|
||||
for (EndpointStatus endpoint : MOJANG_ENDPOINTS) {
|
||||
boolean online = false;
|
||||
ResponseEntity<?> response = WebRequest.getAndIgnoreErrors(endpoint.getEndpoint());
|
||||
ResponseEntity<?> response = WebRequest.get(endpoint.getEndpoint(), String.class);
|
||||
if (endpoint.getAllowedStatuses().contains(response.getStatusCode())) {
|
||||
online = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user