From 7183aefd6271fb9d9398b8d721dea15a699ed501 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Wed, 27 Aug 2014 13:34:10 +0200 Subject: [PATCH] Document building protocol-relative URLs https://github.com/mitsuhiko/werkzeug/pull/528 --- flask/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flask/helpers.py b/flask/helpers.py index 37843a4c..c0495906 100644 --- a/flask/helpers.py +++ b/flask/helpers.py @@ -251,7 +251,8 @@ def url_for(endpoint, **values): parameter must be set to `True` or a `ValueError` is raised. The default behavior uses the same scheme as the current request, or ``PREFERRED_URL_SCHEME`` from the :ref:`app configuration ` if no - request context is available. + request context is available. As of Werkzeug 0.10, this also can be set + to an empty string to build protocol-relative URLs. :param _anchor: if provided this is added as anchor to the URL. :param _method: if provided this explicitly specifies an HTTP method. """