Author: ccahoon
Date: 2009-06-18 00:18:35 -0500 (Thu, 18 Jun 2009)
New Revision: 11040

Modified:
   django/branches/soc2009/http-wsgi-improvements/django/http/__init__.py
Log:
[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.

Modified: django/branches/soc2009/http-wsgi-improvements/django/http/__init__.py
===================================================================
--- django/branches/soc2009/http-wsgi-improvements/django/http/__init__.py      
2009-06-18 05:01:23 UTC (rev 11039)
+++ django/branches/soc2009/http-wsgi-improvements/django/http/__init__.py      
2009-06-18 05:18:35 UTC (rev 11040)
@@ -276,6 +276,7 @@
             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 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to