mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
Refactor common header constants and custom media type
This commit is contained in:
+3
-2
@@ -25,9 +25,10 @@
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
import github.NamedUser
|
||||
|
||||
import Consts
|
||||
|
||||
|
||||
class Reaction(github.GithubObject.CompletableGithubObject):
|
||||
"""
|
||||
@@ -77,7 +78,7 @@ class Reaction(github.GithubObject.CompletableGithubObject):
|
||||
self._requester.requestJsonAndCheck(
|
||||
"DELETE",
|
||||
self._parentUrl("") + "/reactions/" + str(self.id),
|
||||
headers={'Accept': 'application/vnd.github.squirrel-girl-preview'}
|
||||
headers={'Accept': Consts.mediaTypeReactionsPreview}
|
||||
)
|
||||
|
||||
def _initAttributes(self):
|
||||
|
||||
Reference in New Issue
Block a user