Revert heroku app https upgrade fix

This commit is contained in:
Ben Busby 2021-04-01 10:21:59 -04:00
parent a0110fda8d
commit e2114bc698
No known key found for this signature in database
GPG Key ID: 3B08611DF6E62ED2

View File

@ -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)