diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2016-01-01 00:58:18 +0100 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2016-01-01 00:58:18 +0100 |
commit | 70ca658626d05b923285c35ee9c49034b7aedf37 (patch) | |
tree | e6313e7f37292ff079c2e53eb6553304dc6c8c2d /module/plugins/internal/Plugin.py | |
parent | [ExternalScripts] Update (diff) | |
download | pyload-70ca658626d05b923285c35ee9c49034b7aedf37.tar.xz |
[Plugin] Fix AttributeError: HTTPRequest instance has no attribute 'http'
Diffstat (limited to 'module/plugins/internal/Plugin.py')
-rw-r--r-- | module/plugins/internal/Plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py index f43bf240a..f670a2324 100644 --- a/module/plugins/internal/Plugin.py +++ b/module/plugins/internal/Plugin.py @@ -27,7 +27,7 @@ from module.plugins.internal.misc import (Config, DB, decode, encode, exists, fi class Plugin(object): __name__ = "Plugin" __type__ = "plugin" - __version__ = "0.63" + __version__ = "0.64" __status__ = "stable" __config__ = [] #: [("name", "type", "desc", "default")] @@ -226,7 +226,7 @@ class Plugin(object): #@TODO: Move to network in 0.4.10 header = {'code': req.code} - header.update(parse_html_header(req.http.header)) + header.update(parse_html_header(req.http.header if hasattr(req, "http") else req.header)) #@NOTE: req can be a HTTPRequest or a Browser object self.last_header = header |