From b315e9bdc57ccecad319643333fb6207eb358f58 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 5 Sep 2015 14:37:52 -0500 Subject: [PATCH] Default to useHTTPS=True for new Sites. --- earwigbot/wiki/site.py | 2 +- earwigbot/wiki/sitesdb.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/earwigbot/wiki/site.py b/earwigbot/wiki/site.py index ca5636b..6a2d092 100644 --- a/earwigbot/wiki/site.py +++ b/earwigbot/wiki/site.py @@ -89,7 +89,7 @@ class Site(object): def __init__(self, name=None, project=None, lang=None, base_url=None, article_path=None, script_path=None, sql=None, namespaces=None, login=(None, None), cookiejar=None, - user_agent=None, use_https=False, assert_edit=None, + user_agent=None, use_https=True, assert_edit=None, maxlag=None, wait_between_queries=2, logger=None, search_config=None): """Constructor for new Site instances. diff --git a/earwigbot/wiki/sitesdb.py b/earwigbot/wiki/sitesdb.py index 634b33b..3a53531 100644 --- a/earwigbot/wiki/sitesdb.py +++ b/earwigbot/wiki/sitesdb.py @@ -188,7 +188,7 @@ class SitesDB(object): config = self.config login = (config.wiki.get("username"), config.wiki.get("password")) user_agent = config.wiki.get("userAgent") - use_https = config.wiki.get("useHTTPS", False) + use_https = config.wiki.get("useHTTPS", True) assert_edit = config.wiki.get("assert") maxlag = config.wiki.get("maxlag") wait_between_queries = config.wiki.get("waitTime", 2)