mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-03-11 08:54:34 +00:00
Revert heroku app https upgrade fix
This commit is contained in:
parent
a0110fda8d
commit
e2114bc698
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ def needs_https(url: str) -> bool:
|
|||
|
||||
"""
|
||||
https_only = bool(os.getenv('HTTPS_ONLY', 0))
|
||||
is_heroku = '.herokuapp.com' in url
|
||||
is_heroku = url.endswith('.herokuapp.com')
|
||||
is_http = url.startswith('http://')
|
||||
|
||||
return (is_heroku and is_http) or (https_only and is_http)
|
||||
|
|
|
|||
Loading…
Reference in a new issue