Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.0.X] Fixed #8551 -- Added REMOTE_ADDR to the default Test Client e…

…nvironment. Thanks to schmichael for the report and patch.

Merge of r9847 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d9b5a414ca2823bcbb8008c8d19efd8ad16f0c35 1 parent 910aa0e
Russell Keith-Magee freakboy3742 authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/test/client.py
1  django/test/client.py
View
@@ -189,6 +189,7 @@ def request(self, **request):
'HTTP_COOKIE': self.cookies,
'PATH_INFO': '/',
'QUERY_STRING': '',
+ 'REMOTE_ADDR': '127.0.0.1',
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': '',
'SERVER_NAME': 'testserver',
Please sign in to comment.
Something went wrong with that request. Please try again.