diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-09-14 05:28:00 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-09-14 05:28:00 +0000 |
| commit | e70d7e60640e280f8d410d41c1f9cb6195483c4e (patch) | |
| tree | 601a16030a28d5709f3dfbfe87db8a82f596e03f /docs | |
| parent | dc785104b8ffb33c57f5e17209743516c1bd88ae (diff) | |
Fixed #987 -- Convert relative URI portions into absolute URIs in HTTP Location headers. Based on a patch from SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6164 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/request_response.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/request_response.txt b/docs/request_response.txt index cf68505066..5c1abfa2ad 100644 --- a/docs/request_response.txt +++ b/docs/request_response.txt @@ -161,6 +161,16 @@ Methods Example: ``"/music/bands/the_beatles/?print=true"`` +``build_absolute_uri(location)`` + Returns the absolute URI form of ``location``. If no location is provided, + the location will be set to ``request.get_full_path()``. + + If the location is already an absolute URI, it will not be altered. + Otherwise the absolute URI is built using the server variables available in + this request. + + Example: ``"http://example.com/music/bands/the_beatles/?print=true"`` + ``is_secure()`` Returns ``True`` if the request is secure; that is, if it was made with HTTPS. |
