From 229f2c1ca0967efe6e1de5632f98c62afea5a584 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 28 Aug 2008 11:52:50 +0000 Subject: [PATCH] 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 --- django/test/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)