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