mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user