Skip to content

Commit 6f12228

Browse files
committed
close body buffer after read
1 parent 4e5ac52 commit 6f12228

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/com/auth0/net/VoidRequest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import okhttp3.OkHttpClient;
66
import okhttp3.Response;
77

8-
import java.util.Map;
9-
108
public class VoidRequest extends CustomRequest<Void> {
119

1210
public VoidRequest(OkHttpClient client, String url, String method) {
@@ -19,6 +17,7 @@ protected Void parseResponse(Response response) throws Auth0Exception {
1917
if (!response.isSuccessful()) {
2018
throw super.createResponseException(response);
2119
}
20+
response.close();
2221
return null;
2322
}
2423
}

0 commit comments

Comments
 (0)