From 70ca658626d05b923285c35ee9c49034b7aedf37 Mon Sep 17 00:00:00 2001 From: GammaC0de Date: Fri, 1 Jan 2016 01:58:18 +0200 Subject: [Plugin] Fix AttributeError: HTTPRequest instance has no attribute 'http' --- module/plugins/internal/Plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module') 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 -- cgit v1.2.3