mirror of
https://github.com/django/django.git
synced 2024-12-23 09:36:06 +00:00
Fixed #17316 -- Mentionned that the MultipleProxyMiddleware provided as an example must run rather early.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17556 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
7a7ec73efe
commit
9d0bf66273
@ -228,6 +228,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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user