mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 07:48:16 -05:00
get_title now will make requests to HTTPS sites.
This commit is contained in:
committed by
Neil Williams
parent
e88adc7e5b
commit
06dea8a4db
@@ -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 <title>"""
|
||||
if not url or not url.startswith('http://'):
|
||||
if not url or not (url.startswith('http://') or url.startswith('https://')):
|
||||
return None
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user