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:
Steve Kowalik
2018-08-21 13:49:04 +08:00
committed by Wan Liuyang
parent 49db6f8771
commit ebcd3a52e3
6 changed files with 5 additions and 7 deletions
-1
View File
@@ -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