diff options
author | Richard Jones <richard@mechanicalcat.net> | 2013-02-22 14:02:27 +1100 |
---|---|---|
committer | Richard Jones <richard@mechanicalcat.net> | 2013-02-22 14:02:27 +1100 |
commit | f7f5018e11c33101ee2c285a753fcd7f540d7d72 (patch) | |
tree | cb161b01e0aab839186ffbaf6ded05f69e035684 /config.py | |
parent | 75f69c273276214c56b260bf556d9cff1a36921c (diff) | |
download | decorator-f7f5018e11c33101ee2c285a753fcd7f540d7d72.tar.gz |
use relative content links for HTTPS
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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') |