flask-by-example
flask-by-example copied to clipboard
500 for HTTPS
URLs with HTTPS results in a 500 which is not shown as an error on the front-end.
-
https://realpython.com
-> error -
http://realpython.com
-> ok
Same behavior for other sites.
I changed how url is handled in app.py in '/start' route.
if 'http://' in url[:7] or 'https://' in url[:8]:
pass
else:
url = 'http://' + url