mirror of https://github.com/mitsuhiko/flask.git
Browse Source
In order to better facilitate generation of URLs that make use of an HTTPS URL scheme this patch adds a parameter with this specific purpose in mind. To achieve this we explicitly pass in a param, `_scheme='https'`, and then set the `url_scheme` attribute of our `MapAdapter` instance appropriately. Importantly, `_external=True` must be set in order for this to work properly. As such, failure to do so results in a `ValueError` being raised.pull/667/head
Max Countryman
12 years ago
2 changed files with 34 additions and 0 deletions
Loading…
Reference in new issue