From 6f1222862c7fe69f9e124e2870a2b2b4727c07c1 Mon Sep 17 00:00:00 2001 From: Luciano Balmaceda Date: Tue, 26 Dec 2017 18:14:28 -0300 Subject: [PATCH] close body buffer after read --- src/main/java/com/auth0/net/VoidRequest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/auth0/net/VoidRequest.java b/src/main/java/com/auth0/net/VoidRequest.java index 79cde702..6305c310 100644 --- a/src/main/java/com/auth0/net/VoidRequest.java +++ b/src/main/java/com/auth0/net/VoidRequest.java @@ -5,8 +5,6 @@ import okhttp3.OkHttpClient; import okhttp3.Response; -import java.util.Map; - public class VoidRequest extends CustomRequest { public VoidRequest(OkHttpClient client, String url, String method) { @@ -19,6 +17,7 @@ protected Void parseResponse(Response response) throws Auth0Exception { if (!response.isSuccessful()) { throw super.createResponseException(response); } + response.close(); return null; } }