mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-18 06:55:09 +00:00
Update http.py
This commit is contained in:
parent
ff98977edb
commit
d1a42d0b10
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ class http:
|
|||
data = json.dumps(data)
|
||||
_headers = dict(self.session.headers)
|
||||
result = await self.session.post(
|
||||
CREATE_GIST_URL, data=data, headers=_headers | {'Accept': 'application/vnd.github.v3+json'}
|
||||
CREATE_GIST_URL, data=data, headers=_headers
|
||||
)
|
||||
if 201 == result.status:
|
||||
return await result.json()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue