Also enforce https on urls without path

This commit is contained in:
Daniel Martí 2015-08-14 15:30:03 -07:00
parent 4ef3875bf0
commit ab6d6a3d0b

View file

@ -31,7 +31,7 @@ options = None
def enforce_https(domain): def enforce_https(domain):
return (re.compile(r'.*[^sS]://[^/]*' + re.escape(domain) + r'/.*'), return (re.compile(r'.*[^sS]://[^/]*' + re.escape(domain) + r'(/.*)?'),
domain + " URLs should always use https://") domain + " URLs should always use https://")
https_enforcings = [ https_enforcings = [