diff --git a/common/src/main/java/me/lucko/luckperms/common/web/AbstractHttpClient.java b/common/src/main/java/me/lucko/luckperms/common/web/AbstractHttpClient.java index 11224eef9..c40f59160 100644 --- a/common/src/main/java/me/lucko/luckperms/common/web/AbstractHttpClient.java +++ b/common/src/main/java/me/lucko/luckperms/common/web/AbstractHttpClient.java @@ -46,6 +46,7 @@ public class AbstractHttpClient { protected Response makeHttpRequest(Request request) throws IOException { Response response = this.okHttp.newCall(request).execute(); if (!response.isSuccessful()) { + response.close(); throw new RuntimeException("Request was unsuccessful: " + response.code() + " - " + response.message()); } return response;