1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-07-24 15:07:44 +00:00

Merge pull request #7 from rtk-rnjn/patch-1

Update http.py, thank you ritik
This commit is contained in:
Var 2022-04-30 11:05:10 +05:30 committed by GitHub
commit 8091515ee9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,6 +137,8 @@ class http:
auth=self.auth,
trace_configs=[trace_config],
)
if not hasattr(self.session, "_rates"):
self.session._rates = Rates('', '', '', '', '')
return self
def update_headers(self, *, flush: bool = False, new_headers: Dict[str, Union[str, int]]):