mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
Merge commit 'pull/275/head'
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user