Skip to content
Myr

Add documentation about url_for's default scheme

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix #1129

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parent 1d55b89 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:flask/helpers.py+4 added-1 removed
246 unmodified lines
247 :param _external: if set to `True`, an absolute URL is generated. Server248 address can be changed via `SERVER_NAME` configuration variable which249 defaults to `localhost`.250 :param _scheme: a string specifying the desired URL scheme. The `_external`251 parameter must be set to `True` or a `ValueError` is raised.251 parameter must be set to `True` or a `ValueError` is raised. The default252 behavior uses the same scheme as the current request, or253 ``PREFERRED_URL_SCHEME`` from the :ref:`app configuration <config>` if no254 request context is available.255 :param _anchor: if provided this is added as anchor to the URL.256 :param _method: if provided this explicitly specifies an HTTP method.257 """258 appctx = _app_ctx_stack.top
644 unmodified lines