diff options
| author | Unai Zalakain <unai@gisa-elkartea.org> | 2013-11-04 00:34:11 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-06-07 08:59:02 -0400 |
| commit | 11284a63d48c84f1d60b5686d55cf8a9f8d64422 (patch) | |
| tree | 6c16ab34fae64bbdc37ac7d5f990b979598b7a17 /docs | |
| parent | 9ed4a8c6b1a552a03fd27b77f1b742e3f9c66bde (diff) | |
Fixed #18314 -- Corrected request.build_absolute_uri() handling of paths starting with //
``HttpRequest.build_absolute_uri()`` now correctly handles paths starting with ``//``.
``WSGIRequest`` now doesn't remove all the leading slashes either,
because ``http://test/server`` and http://test//server`` aren't the same thing
(RFC2396).
Thanks to SmileyChris for the initial patch.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.8.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt index 3e241aff27..50d27aceb8 100644 --- a/docs/releases/1.8.txt +++ b/docs/releases/1.8.txt @@ -188,7 +188,11 @@ Templates Requests and Responses ^^^^^^^^^^^^^^^^^^^^^^ -* ... +* ``WSGIRequest`` now respects paths starting with ``//``. + +* The :meth:`HttpRequest.build_absolute_uri() + <django.http.HttpRequest.build_absolute_uri>` method now handles paths + starting with ``//`` correctly. Tests ^^^^^ |
