From 7acae8f4d8a8f191d46fbb16e8cb15f46644b2ca Mon Sep 17 00:00:00 2001 From: Chris Cahoon Date: Thu, 18 Jun 2009 05:18:35 +0000 Subject: [PATCH] [soc2009/http-wsgi-improvements] http.HttpResponse now initializes self._codec to None. Changeset 11030 did not actually pass the regression test suite. This passes all except two tests, from test_client_regress. They expect old behavior (which is that their responses will be encoded in settings.DEFAULT_CHARSET). I am not yet sure if that is the correct expectation for the test to have, so I will do investigations into that. git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/http-wsgi-improvements@11040 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/http/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/http/__init__.py b/django/http/__init__.py index b44d043350..fbdce2e77c 100644 --- a/django/http/__init__.py +++ b/django/http/__init__.py @@ -276,6 +276,7 @@ class HttpResponse(object): content_type=None, request=None): from django.conf import settings self._charset = settings.DEFAULT_CHARSET + self._codec = None accept_charset = None if mimetype: content_type = mimetype # Mimetype is an alias for content-type