mirror of
				https://github.com/RGBCube/GitHubWrapper
				synced 2025-10-31 05:52:45 +00:00 
			
		
		
		
	Merge branch 'main' of https://github.com/VarMonke/Github-Api-Wrapper
This commit is contained in:
		
						commit
						03ea733068
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -255,8 +255,8 @@ class http: | |||
|                 'content': file.read() | ||||
|             } | ||||
|         data = json.dumps(data) | ||||
|         _headers = self.session.headers | ||||
|         result = self.session.post(CREATE_GIST_URL, data=data, headers=_headers|{'Accept': 'application/vnd.github.v3+json'}) | ||||
|         _headers = dict(self.session.headers) | ||||
|         result = await self.session.post(CREATE_GIST_URL, data=data, headers=_headers|{'Accept': 'application/vnd.github.v3+json'}) | ||||
|         if 201 == result.status: | ||||
|             return await result.json() | ||||
|         raise InvalidToken | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 VarMonke
						VarMonke