From 8fbde7a43b4f838df0379fdb4acd791713b639b7 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 15 Dec 2013 14:00:42 +0100 Subject: more options to get webUI through proxy working --- pyload/remote/wsbackend/AbstractHandler.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'pyload/remote/wsbackend/AbstractHandler.py') diff --git a/pyload/remote/wsbackend/AbstractHandler.py b/pyload/remote/wsbackend/AbstractHandler.py index 842d87473..e69ff2573 100644 --- a/pyload/remote/wsbackend/AbstractHandler.py +++ b/pyload/remote/wsbackend/AbstractHandler.py @@ -46,13 +46,12 @@ class AbstractHandler: req.api = None #when api is set client is logged in # allow login via session when webinterface is active - if self.core.config['webinterface']['activated']: - cookie = req.headers_in.getheader('Cookie') - s = self.load_session(cookie) - if s: - uid = s.get('uid', None) - req.api = self.api.withUserContext(uid) - self.log.debug("WS authenticated user with cookie: %d" % uid) + cookie = req.headers_in.getheader('Cookie') + s = self.load_session(cookie) + if s: + uid = s.get('uid', None) + req.api = self.api.withUserContext(uid) + self.log.debug("WS authenticated user with cookie: %d" % uid) self.on_open(req) -- cgit v1.2.3