Skip to content
Browse files

[1.3.X] Fixed #17316 -- Mentionned that the MultipleProxyMiddleware p…

…rovided as an example must run rather early. Backport of r17556 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 2a5a0b8 commit 7baee7a03b8f9ec4840942eecb80fcbe1c75b231 @aaugustin aaugustin committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 docs/ref/request-response.txt
4 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()

0 comments on commit 7baee7a

Please sign in to comment.
Something went wrong with that request. Please try again.