diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-18 23:26:48 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-18 23:26:48 +0200 |
commit | 1bc7db9098967a166b17df59065861fbe3cd41d8 (patch) | |
tree | 6eeea765ef1e9c9c06acaa363408b94d00a64b46 /module/plugins | |
parent | Code cosmetics (diff) | |
download | pyload-1bc7db9098967a166b17df59065861fbe3cd41d8.tar.xz |
[Hoster] Fix the http request issue
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/internal/Account.py | 5 | ||||
-rw-r--r-- | module/plugins/internal/Hoster.py | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py index b437b4a55..951d279be 100644 --- a/module/plugins/internal/Account.py +++ b/module/plugins/internal/Account.py @@ -16,7 +16,7 @@ class WrongPassword(Exception): class Account(Plugin): __name__ = "Account" __type__ = "account" - __version__ = "0.04" + __version__ = "0.05" __description__ = """Base account plugin""" __license__ = "GPLv3" @@ -92,8 +92,9 @@ class Account(Plugin): def relogin(self, user): req = self.get_account_request(user) if req: - req.cj.clear() + req.clearCookies() req.close() + if user in self.infos: del self.infos[user] #: delete old information diff --git a/module/plugins/internal/Hoster.py b/module/plugins/internal/Hoster.py index 15c46101b..637d9f3b5 100644 --- a/module/plugins/internal/Hoster.py +++ b/module/plugins/internal/Hoster.py @@ -165,6 +165,8 @@ class Hoster(Plugin): """ self.thread = thread + self.req.renewHTTPRequest() + if self.account: self.account.check_login(self.user) else: |