Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2012-09-24 14:04:57 -0400
committerKevin Sawicki2012-09-24 14:04:57 -0400
commit4a91e785aed6184e8d65e9f18316862314291228 (patch)
treec56504f30e39a95d209a5569d8c174b96bc8ac89
parent61cd35f76bdeeb82e771ff53931bcaf07f44a942 (diff)
downloadegit-github-4a91e785aed6184e8d65e9f18316862314291228.tar.gz
egit-github-4a91e785aed6184e8d65e9f18316862314291228.tar.xz
egit-github-4a91e785aed6184e8d65e9f18316862314291228.zip
Update rate limits from getResponseStream
This ensures it will be updated for both GET and POST calls. Change-Id: I816a9df426463a6a5119b5102a9132e137160432
-rw-r--r--org.eclipse.egit.github.core/src/org/eclipse/egit/github/core/client/GitHubClient.java2
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

Back to the top