Kaydet (Commit) cd0611bd authored tarafından Russell Keith-Magee's avatar Russell Keith-Magee

Fixed #8551 -- Added REMOTE_ADDR to the default Test Client environment. Thanks…

Fixed #8551 -- Added REMOTE_ADDR to the default Test Client environment. Thanks to schmichael for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9847 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 322a6a9d
...@@ -193,6 +193,7 @@ class Client(object): ...@@ -193,6 +193,7 @@ class Client(object):
'HTTP_COOKIE': self.cookies, 'HTTP_COOKIE': self.cookies,
'PATH_INFO': '/', 'PATH_INFO': '/',
'QUERY_STRING': '', 'QUERY_STRING': '',
'REMOTE_ADDR': '127.0.0.1',
'REQUEST_METHOD': 'GET', 'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': '', 'SCRIPT_NAME': '',
'SERVER_NAME': 'testserver', 'SERVER_NAME': 'testserver',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment