We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4582c38 + c62e068 commit 1e04786Copy full SHA for 1e04786
src/main/java/com/convertapi/client/Http.java
@@ -62,9 +62,7 @@ static CompletableFuture<InputStream> requestGet(String url) {
62
static CompletableFuture<Void> requestDelete(String url) {
63
return CompletableFuture.supplyAsync(() -> {
64
Request request = getRequestBuilder().delete().url(url).build();
65
- try {
66
- getClient().newCall(request).execute().close();
67
- return null;
+ try (Response response = getClient().newCall(request).execute()) {
68
} catch (IOException e) {
69
throw new RuntimeException(e);
70
}
0 commit comments