mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Remove custom swamp-thing-preview header (#873)
The Repository Invitation API graduated on July 17, 2017, so the custom Accept header is no longer required.
This commit is contained in:
committed by
Wan Liuyang
parent
49db6f8771
commit
ebcd3a52e3
@@ -779,7 +779,6 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
"PUT",
|
||||
self.url + "/collaborators/" + collaborator,
|
||||
headers={'Accept': 'application/vnd.github.swamp-thing-preview+json'},
|
||||
input=put_parameters
|
||||
)
|
||||
# return an invitation object if there's data returned by the API. If data is empty
|
||||
|
||||
Reference in New Issue
Block a user