Bug fix
authorJakob <jakob@jcornell.net>
Sun, 1 Dec 2019 00:15:17 +0000 (18:15 -0600)
committerJakob <jakob@jcornell.net>
Sun, 1 Dec 2019 00:15:17 +0000 (18:15 -0600)
auth.py

diff --git a/auth.py b/auth.py
index e27cbd7db5e62706e079c11d7c82c719afb61132..db0fd7c95d49ca8fac4d01a3491a94ccb492540a 100644 (file)
--- a/auth.py
+++ b/auth.py
@@ -286,7 +286,7 @@ class CookieAuthHandler(urllib.request.HTTPCookieProcessor):
                        self.storage_mgr['username'] = username
                        self.storage_mgr['password'] = encode(password)
 
-               url = self.bb_root.host + str(self.bb_root.path)
+               url = 'https://' + self.bb_root.host + str(self.bb_root.path)
                with self.parent.open(url) as resp:
                        soup = bs4.BeautifulSoup(resp, 'lxml')
                [form] = soup.select('#login-form > form[name="login"]')