diff options
author | Chris Cahoon <chris.cahoon@gmail.com> | 2009-06-18 05:18:35 +0000 |
---|---|---|
committer | Chris Cahoon <chris.cahoon@gmail.com> | 2009-06-18 05:18:35 +0000 |
commit | 7acae8f4d8a8f191d46fbb16e8cb15f46644b2ca (patch) | |
tree | 63ec6262b0dfce8f98cb9e63ba9dc93b3f5d8b9c | |
parent | a86d5ddc77415a08d4a971f0abb18ef28f17cdb2 (diff) | |
download | django-7acae8f4d8a8f191d46fbb16e8cb15f46644b2ca.tar.gz |
[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
-rw-r--r-- | django/http/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |