Change the Accept header to current github api recommedation
This commit is contained in:
parent
c6dd6ccc68
commit
4290a8f9ba
1 changed files with 1 additions and 1 deletions
|
|
@ -255,7 +255,7 @@ def __init__(
|
|||
self.is_nightly = self.current_tag_name == 'nightly'
|
||||
self.requests = s = requests.Session()
|
||||
s.auth = (self.username, self.password)
|
||||
s.headers.update({'Accept': 'application/vnd.github.v3+json'})
|
||||
s.headers.update({'Accept': 'application/vnd.github+json'})
|
||||
self.url_base = f'{self.API}/repos/{self.username}/{self.reponame}/releases'
|
||||
|
||||
def patch(self, url: str, fail_msg: str, **data: Any) -> None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue