summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro Lucarella <leandro.lucarella@sociomantic.com>2014-10-16 12:38:28 +0200
committerMihails Strasuns <mihails.strasuns@sociomantic.com>2014-10-16 21:36:49 +0200
commit41c3844ba42ecf742bb358daf22017e9204294dc (patch)
treeb11f6998a5eddb308cf10a1051a9697370085f47
parentd75cf7a925f11d60997a886b3846f486639b1ba4 (diff)
Ask for the final v3 GitHub API version
There are no real difference in the kind of API calls we make, so no other changes are needed.
-rwxr-xr-xgit-hub2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-hub b/git-hub
index 33c746d..d99839b 100755
--- a/git-hub
+++ b/git-hub
@@ -402,7 +402,7 @@ class RequestManager:
req.add_header("Authorization", "bearer " +
self.oauthtoken)
req.add_header("Content-Type", "application/json")
- req.add_header("Accept", "application/vnd.github.beta+json")
+ req.add_header("Accept", "application/vnd.github.v3+json")
req.add_header("Content-Length", str(len(body) if body else 0))
req.get_method = lambda: method.upper()
debugf('{}', req.get_full_url())