From 06dea8a4db6603f7a20f995b30b6aaf3c0dc554d Mon Sep 17 00:00:00 2001 From: Neal Poole Date: Sat, 27 Aug 2011 11:54:20 -0400 Subject: [PATCH] get_title now will make requests to HTTPS sites. --- r2/r2/lib/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/lib/utils/utils.py b/r2/r2/lib/utils/utils.py index b317b657d..828f7685f 100644 --- a/r2/r2/lib/utils/utils.py +++ b/r2/r2/lib/utils/utils.py @@ -233,7 +233,7 @@ def path_component(s): def get_title(url): """Fetches the contents of url and extracts (and utf-8 encodes) the contents of """ - if not url or not url.startswith('http://'): + if not url or not (url.startswith('http://') or url.startswith('https://')): return None try: