Skip to content

Commit

Permalink
Follow up to PR #216
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Dec 1, 2015
1 parent f9291f9 commit 75a4081
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/org/kohsuke/github/Requester.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ public int asHttpStatusCode(String tailApiUrl) throws IOException {
while (true) {// loop while API rate limit is hit
setupConnection(root.getApiURL(tailApiUrl));

uc.setRequestMethod("GET");

buildRequest();

try {
Expand All @@ -273,7 +275,6 @@ public InputStream asStream(String tailApiUrl) throws IOException {
while (true) {// loop while API rate limit is hit
setupConnection(root.getApiURL(tailApiUrl));


// if the download link is encoded with a token on the query string, the default behavior of POST will fail
uc.setRequestMethod("GET");

Expand Down

0 comments on commit 75a4081

Please sign in to comment.