From d3ecd498feaeb99371a3a27874f383fb190b0efd Mon Sep 17 00:00:00 2001 From: Konstantin Lopuhin Date: Tue, 14 Jun 2016 17:44:28 +0300 Subject: [PATCH] Fix ProxyFromSettingsMiddleware: set auth_encoding --- autologin/middleware.py | 1 + 1 file changed, 1 insertion(+) diff --git a/autologin/middleware.py b/autologin/middleware.py index 88cf0d0..c0e5490 100644 --- a/autologin/middleware.py +++ b/autologin/middleware.py @@ -43,6 +43,7 @@ def from_crawler(cls, crawler): def __init__(self, settings): self.proxies = {} + self.auth_encoding = settings.get('HTTPPROXY_AUTH_ENCODING') proxies = [ ('http', settings.get('HTTP_PROXY')), ('https', settings.get('HTTPS_PROXY')),