Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Not functional #51

Open
willgdjones opened this issue Aug 6, 2017 · 1 comment
Open

Not functional #51

willgdjones opened this issue Aug 6, 2017 · 1 comment

Comments

@willgdjones
Copy link

Following instructions doesn't seem to redirect my traffic.

def app_factory():
    app = Flask(__name__)

    app.config.from_object('config')

    if app.config['ENV'] == 'prod': # only trigger SSLify if the app is running on Heroku
        sslify = SSLify(app)

After I push everything up:

(venv)➜  heterogeneous git:(master) curl -I http://www.heterogeneous.co.uk
HTTP/1.1 200 OK
Connection: keep-alive
Server: gunicorn/19.6.0
Date: Sun, 06 Aug 2017 21:12:39 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 45089
Via: 1.1 vegur

Potential reasons:

  • Python 2
@willgdjones
Copy link
Author

When navigating to my site for the first time via HTTP, my server returns an HTTP response.

After I navigate to the site once via HTTPS, all future HTTP future is routed via HTTPS. Is this unexpected or expected behaviour? Thanks in advance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant