From d1a42d0b10328f21326f07dbc0ecd6f79fc60d16 Mon Sep 17 00:00:00 2001 From: Var <94229714+VarMonke@users.noreply.github.com> Date: Wed, 18 May 2022 14:47:36 +0530 Subject: [PATCH] Update http.py --- github/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/http.py b/github/http.py index 24cb6fb..f5c55b9 100644 --- a/github/http.py +++ b/github/http.py @@ -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()