flask-by-example icon indicating copy to clipboard operation
flask-by-example copied to clipboard

500 for HTTPS

Open bzamecnik opened this issue 8 years ago • 1 comments

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.

bzamecnik avatar Dec 05 '16 17:12 bzamecnik

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

Johnlock1 avatar Dec 07 '18 11:12 Johnlock1