summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2008-08-28 11:52:50 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2008-08-28 11:52:50 +0000
commit229f2c1ca0967efe6e1de5632f98c62afea5a584 (patch)
tree540247a3c90f868c05d919a65d129087cd57d82a
parent369b4270fa0dc796f8553ac66998c3dbbffbd332 (diff)
Fixed #8636: Corrected the test client to use the string '80' in the request META, rather than the integer 80. Thanks to Adam Lofts for the report and fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8655 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/test/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/test/client.py b/django/test/client.py
index 4d57f2d2ab..ea2fd32d3f 100644
--- a/django/test/client.py
+++ b/django/test/client.py
@@ -191,7 +191,7 @@ class Client:
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': '',
'SERVER_NAME': 'testserver',
- 'SERVER_PORT': 80,
+ 'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.1',
}
environ.update(self.defaults)