How to set wsgi.url_scheme to https in bottle?
问题 I want to redirect all requests to http to https . Is there a generic approach to setting wsgi.url_scheme to https in a Python 2.7 bottle application? The general structure of the application is: setup.py // contains 'install_requires' wsgi - myapplication.py // the custom application containing bottle routes wsgi.url_scheme seems to be related to environment variables: http://wsgi.readthedocs.org/en/latest/definitions.html#envvar-wsgi.url_scheme But I'm not sure how to actually 'set' the