Skip to content

Commit 19fbe3a

Browse files
rocambolesquedavidism
authored andcommitted
Add scheme to url_build error handler parameters
1 parent 7481844 commit 19fbe3a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ Major release, unreleased
1919
time the constructor adds the static route, and enables the static route to
2020
be properly associated with the required host. (``#1559``)
2121
- ``send_file`` supports Unicode in ``attachment_filename``. (`#2223`_)
22+
- Pass ``_scheme`` argument from ``url_for`` to ``handle_build_error``.
23+
(`#2017`_)
2224

25+
.. _#2017: https://github.com/pallets/flask/pull/2017
2326
.. _#2223: https://github.com/pallets/flask/pull/2223
2427

2528
Version 0.12.1

flask/helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ def external_url_handler(error, endpoint, values):
331331
values['_external'] = external
332332
values['_anchor'] = anchor
333333
values['_method'] = method
334+
values['_scheme'] = scheme
334335
return appctx.app.handle_url_build_error(error, endpoint, values)
335336

336337
if anchor is not None:

0 commit comments

Comments
 (0)