Skip to content

Commit cff1a42

Browse files
committed
Capitalization of the 2FA OTP request header
1 parent ca0132f commit cff1a42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github/AuthenticatedUser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def create_authorization(self, scopes=github.GithubObject.NotSet, note=github.Gi
426426
if client_secret is not github.GithubObject.NotSet:
427427
post_parameters["client_secret"] = client_secret
428428
if onetime_password is not None:
429-
request_header = {'x-github-otp': onetime_password} # pragma no cover (Should be covered)
429+
request_header = {'X-GitHub-OTP': onetime_password} # pragma no cover (Should be covered)
430430
else:
431431
request_header = None
432432
headers, data = self._requester.requestJsonAndCheck(

0 commit comments

Comments
 (0)