mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-05-21 16:35:08 +00:00
Update http.py
This commit is contained in:
parent
babfb7bdcd
commit
05ffe354f3
1 changed files with 2 additions and 0 deletions
|
@ -137,6 +137,8 @@ class http:
|
||||||
auth=self.auth,
|
auth=self.auth,
|
||||||
trace_configs=[trace_config],
|
trace_configs=[trace_config],
|
||||||
)
|
)
|
||||||
|
if not hasattr(self.session, "_rates"):
|
||||||
|
self.session._rates = Rates('', '', '', '', '')
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def update_headers(self, *, flush: bool = False, new_headers: Dict[str, Union[str, int]]):
|
def update_headers(self, *, flush: bool = False, new_headers: Dict[str, Union[str, int]]):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue