diff options
author | Kevin Sawicki | 2012-09-24 18:04:57 +0000 |
---|---|---|
committer | Kevin Sawicki | 2012-09-24 18:04:57 +0000 |
commit | 4a91e785aed6184e8d65e9f18316862314291228 (patch) | |
tree | c56504f30e39a95d209a5569d8c174b96bc8ac89 /org.eclipse.egit.github.core | |
parent | 61cd35f76bdeeb82e771ff53931bcaf07f44a942 (diff) | |
download | egit-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
Diffstat (limited to 'org.eclipse.egit.github.core')
-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 |