diff --git a/src/main/java/com/spotify/github/v3/clients/RepositoryClient.java b/src/main/java/com/spotify/github/v3/clients/RepositoryClient.java index 5039efc9..b00aa51f 100644 --- a/src/main/java/com/spotify/github/v3/clients/RepositoryClient.java +++ b/src/main/java/com/spotify/github/v3/clients/RepositoryClient.java @@ -221,7 +221,11 @@ public CompletableFuture setCommitStatus( final String path = String.format(STATUS_URI_TEMPLATE, owner, repo, sha); return github .post(path, github.json().toJsonUnchecked(request)) - .thenAccept(IGNORE_RESPONSE_CONSUMER); + .thenAccept(response -> { + if (response.body() != null) { + response.body().close(); + } + }); } /**