Skip to content

Commit

Permalink
Merge branch 'hotfix/1.2.2' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Archie committed Nov 17, 2020
2 parents 7f228c4 + cbab2c0 commit b09411d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion api.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ def __init__(self, phone_number: str, access_token: str = ''):

async def __aenter__(self):
self.session = ClientSession(headers={
'Authorization': f'Bearer {self.access_token}'
'Authorization': f'Bearer {self.access_token}',
'Connection': 'keep-alive',
'Tele2-User-Agent': '"mytele2-app/3.17.0"; "unknown"; "Android/9"; "Build/12998710"',
'X-API-Version': '1',
'User-Agent': 'okhttp/4.2.0'
})
return self

Expand Down
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


def print_version():
print('tele2-profit v1.2.1')
print('tele2-profit v1.2.2')


def run_main(main):
Expand Down

0 comments on commit b09411d

Please sign in to comment.