diff options
author | Leandro Lucarella <leandro.lucarella@sociomantic.com> | 2014-10-16 12:38:28 +0200 |
---|---|---|
committer | Mihails Strasuns <mihails.strasuns@sociomantic.com> | 2014-10-16 21:36:49 +0200 |
commit | 41c3844ba42ecf742bb358daf22017e9204294dc (patch) | |
tree | b11f6998a5eddb308cf10a1051a9697370085f47 | |
parent | d75cf7a925f11d60997a886b3846f486639b1ba4 (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-x | git-hub | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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()) |