From d23b160e6df5d13e7db7a5e53afab6db306efe3c Mon Sep 17 00:00:00 2001 From: RyanSquared Date: Tue, 12 Feb 2019 11:58:18 -0600 Subject: [PATCH] helpers.py: Fix docs of url_for(..., _external=True) --- flask/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask/helpers.py b/flask/helpers.py index 24c8a5da..158edc5c 100644 --- a/flask/helpers.py +++ b/flask/helpers.py @@ -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