summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorRichard Jones <richard@mechanicalcat.net>2013-02-22 14:02:27 +1100
committerRichard Jones <richard@mechanicalcat.net>2013-02-22 14:02:27 +1100
commitf7f5018e11c33101ee2c285a753fcd7f540d7d72 (patch)
treecb161b01e0aab839186ffbaf6ded05f69e035684 /config.py
parent75f69c273276214c56b260bf556d9cff1a36921c (diff)
downloaddecorator-f7f5018e11c33101ee2c285a753fcd7f540d7d72.tar.gz
use relative content links for HTTPS
Diffstat (limited to 'config.py')
-rw-r--r--config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.py b/config.py
index f35c872..303f61c 100644
--- a/config.py
+++ b/config.py
@@ -49,6 +49,8 @@ class Config:
self.url = c.get('webui', 'url')
self.scheme_host = urlunsplit(urlsplit(self.url)[:2]+('','',''))
self.orig_pydotorg = self.pydotorg = c.get('webui', 'pydotorg')
+ if self.url.startswith("https:"):
+ self.pydotorg = '/'
self.simple_script = c.get('webui', 'simple_script')
self.files_url = c.get('webui', 'files_url')
self.rss_file = c.get('webui', 'rss_file')