1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-05-21 08:25:08 +00:00

Update http.py

This commit is contained in:
Ritik Ranjan 2022-04-30 10:51:11 +05:30 committed by GitHub
parent babfb7bdcd
commit 05ffe354f3
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]]):