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:
parent
4ef3875bf0
commit
ab6d6a3d0b
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user