Commit 4b30fa33 authored by ajctrl's avatar ajctrl Committed by GitHub

Update token.py (#1075)

fix issue #1061
parent a45a8ac7
......@@ -18,6 +18,7 @@ class RefreshTokenException(Exception):
class Token:
def __init__(self, config):
self._session = requests.Session()
self._session.headers.update({'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0'})
self.config = config
self._retries = 5
self._timeout = 10
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment