mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
Also enforce https on urls without path
This commit is contained in:
parent
4ef3875bf0
commit
ab6d6a3d0b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue