Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion github/AuthenticatedUser.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def create_authorization(self, scopes=github.GithubObject.NotSet, note=github.Gi
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(
Expand Down