Skip to content

Commit

Permalink
Merge pull request #101 from auth0/fix-buffer-state
Browse files Browse the repository at this point in the history
Close ResponseBody buffer after read
  • Loading branch information
lbalmaceda authored Dec 27, 2017
2 parents 4e5ac52 + 6f12228 commit 5d83ed8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/auth0/net/VoidRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import okhttp3.OkHttpClient;
import okhttp3.Response;

import java.util.Map;

public class VoidRequest extends CustomRequest<Void> {

public VoidRequest(OkHttpClient client, String url, String method) {
Expand All @@ -19,6 +17,7 @@ protected Void parseResponse(Response response) throws Auth0Exception {
if (!response.isSuccessful()) {
throw super.createResponseException(response);
}
response.close();
return null;
}
}

0 comments on commit 5d83ed8

Please sign in to comment.