aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xchocula.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/chocula.py b/chocula.py
index 3d77fe4..0125cb9 100755
--- a/chocula.py
+++ b/chocula.py
@@ -359,6 +359,8 @@ def parse_url(url):
return None
if url.startswith('www.'):
url = "http://" + url
+ if url.startswith('ttp://') or url.startswith('ttps://'):
+ url = "h" + url
url.replace('Http://', 'http://')
url = str(urlcanon.semantic_precise(url))