mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-14 07:04:26 -04:00
Fix session issues
This commit is contained in:
parent
46e6a85e84
commit
6b2c60d552
3 changed files with 8 additions and 4 deletions
|
@ -86,7 +86,9 @@ class HonAuth:
|
|||
):
|
||||
await self._error_logger(redirect2)
|
||||
return False
|
||||
async with self._session.get(URL(url, encoded=True)) as login_screen:
|
||||
async with self._session.get(
|
||||
URL(url, encoded=True), headers={"user-agent": const.USER_AGENT}
|
||||
) as login_screen:
|
||||
self._called_urls.append(
|
||||
(login_screen.status, login_screen.request_info.url)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue