diff options
-rw-r--r-- | org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java index 1c7fe04f..dfb5f13b 100644 --- a/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java +++ b/org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java @@ -642,7 +642,6 @@ public class GitHubClient { throws IOException { HttpURLConnection connection = createPost(uri); sendParams(connection, params); - updateRateLimits(connection); return getResponseStream(connection); } @@ -657,6 +656,7 @@ public class GitHubClient { throws IOException { InputStream stream = getStream(request); int code = request.getResponseCode(); + updateRateLimits(request); if (isOk(code)) return stream; else |