summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-02-19 08:10:20 +0000
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-02-19 08:10:20 +0000
commit7baee7a03b8f9ec4840942eecb80fcbe1c75b231 (patch)
tree49074a5c68b3bb3b376ae662589732dbb4d00b6e
parent2a5a0b8097a35e355b0742cb2c912913581d259a (diff)
[1.3.X] Fixed #17316 -- Mentionned that the MultipleProxyMiddleware provided as an example must run rather early. Backport of r17556 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@17557 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--docs/ref/request-response.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index d15a07cdae..e6a16a916d 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -223,6 +223,10 @@ Methods
parts = request.META[field].split(',')
request.META[field] = parts[-1].strip()
+ This middleware should be positionned before any other middleware that
+ relies on the value of :meth:`~HttpRequest.get_host()`, for instance
+ :class:`~django.middleware.common.CommonMiddleware` or
+ :class:`~django.middleware.csrf.CsrfViewMiddleware`.
.. method:: HttpRequest.get_full_path()