Github: use HEAD request

This commit is contained in:
Aleksey Pivovarov
2013-07-16 13:53:19 +04:00
parent 661fee37ef
commit bebda2eed9
@@ -200,7 +200,7 @@ public class GithubApiUtil {
public static Collection<String> getTokenScopes(@NotNull GithubAuthData auth) throws IOException {
HttpMethod method = null;
try {
method = doREST(auth, "", null, HttpVerb.GET);
method = doREST(auth, "", null, HttpVerb.HEAD);
checkStatusCode(method);