diff --git a/src/main/java/com/spotify/github/v3/clients/GitHubClient.java b/src/main/java/com/spotify/github/v3/clients/GitHubClient.java index 0294ae88..e58e5e68 100644 --- a/src/main/java/com/spotify/github/v3/clients/GitHubClient.java +++ b/src/main/java/com/spotify/github/v3/clients/GitHubClient.java @@ -772,7 +772,7 @@ CompletableFuture processPossibleRedirects( final Request request = requestBuilder(newLocation) .url(newLocation) - .method("POST", response.request().body()) + .method(response.request().method(), response.request().body()) .build(); // Do the new call and complete the original future when the new call completes return call(request);