Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 75a4081

Browse filesBrowse files
committed
Follow up to PR hub4j#216
1 parent f9291f9 commit 75a4081
Copy full SHA for 75a4081

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎src/main/java/org/kohsuke/github/Requester.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/Requester.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ public int asHttpStatusCode(String tailApiUrl) throws IOException {
259259
while (true) {// loop while API rate limit is hit
260260
setupConnection(root.getApiURL(tailApiUrl));
261261

262+
uc.setRequestMethod("GET");
263+
262264
buildRequest();
263265

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

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.