Capitalization of the 2FA OTP request header

This commit is contained in:
Tomas Radej
2014-09-24 11:49:55 +02:00
parent ca0132f6c7
commit cff1a422c2
+1 -1
View File
@@ -426,7 +426,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
if client_secret is not github.GithubObject.NotSet:
post_parameters["client_secret"] = client_secret
if onetime_password is not None:
request_header = {'x-github-otp': onetime_password} # pragma no cover (Should be covered)
request_header = {'X-GitHub-OTP': onetime_password} # pragma no cover (Should be covered)
else:
request_header = None
headers, data = self._requester.requestJsonAndCheck(