From 295f4c9fadfda790215921616b90ad5143aef771 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Wed, 3 Jan 2007 22:40:06 +0000 Subject: [PATCH] Fixed #3225: fixed a typo on docs/middleware.txt. Thanks, Collin Grady git-svn-id: http://code.djangoproject.com/svn/django/trunk@4282 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/middleware.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/middleware.txt b/docs/middleware.txt index efc4d89569..74b8b187c5 100644 --- a/docs/middleware.txt +++ b/docs/middleware.txt @@ -106,9 +106,10 @@ django.middleware.http.SetRemoteAddrFromForwardedFor **New in Django development version** -Sets ``request['REMOTE_ADDR']`` based on ``request.['HTTP_X_FORWARDED_FOR']``, -if the latter is set. This is useful if you're sitting behind a reverse proxy -that causes each request's ``REMOTE_ADDR`` to be set to ``127.0.0.1``. +Sets ``request.META['REMOTE_ADDR']`` based on +``request.META['HTTP_X_FORWARDED_FOR']``, if the latter is set. This is useful +if you're sitting behind a reverse proxy that causes each request's +``REMOTE_ADDR`` to be set to ``127.0.0.1``. **Important note:** This does NOT validate ``HTTP_X_FORWARDED_FOR``. If you're not behind a reverse proxy that sets ``HTTP_X_FORWARDED_FOR`` automatically, do