1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-08-16 03:10:09 +02:00

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):
return (re.compile(r'.*[^sS]://[^/]*' + re.escape(domain) + r'/.*'),
return (re.compile(r'.*[^sS]://[^/]*' + re.escape(domain) + r'(/.*)?'),
domain + " URLs should always use https://")
https_enforcings = [