Merge pull request #3096 from RyanSquared/master

helpers.py: Fix docs of url_for(..., _external=True)
This commit is contained in:
David Lord 2019-05-16 07:30:07 -07:00 committed by GitHub
commit c88e4634a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -276,7 +276,7 @@ def url_for(endpoint, **values):
:param values: the variable arguments of the URL rule
:param _external: if set to ``True``, an absolute URL is generated. Server
address can be changed via ``SERVER_NAME`` configuration variable which
defaults to `localhost`.
falls back to the `Host` header, then to the IP and port of the request.
:param _scheme: a string specifying the desired URL scheme. The `_external`
parameter must be set to ``True`` or a :exc:`ValueError` is raised. The default
behavior uses the same scheme as the current request, or