Author: adrian
Date: 2007-02-09 21:56:21 -0600 (Fri, 09 Feb 2007)
New Revision: 4472
Modified:
django/trunk/django/http/__init__.py
Log:
Fixed #3437 -- Fixed incorrect logic in django.http.HttpResponse calculation of
_is_string. Thanks, Brian Harring
Modified: django/trunk/django/http/__init__.py
===================================================================
--- django/trunk/django/http/__init__.py 2007-02-10 03:42:24 UTC (rev
4471)
+++ django/trunk/django/http/__init__.py 2007-02-10 03:56:21 UTC (rev
4472)
@@ -160,7 +160,7 @@
self._charset = settings.DEFAULT_CHARSET
if not mimetype:
mimetype = "%s; charset=%s" % (settings.DEFAULT_CONTENT_TYPE,
settings.DEFAULT_CHARSET)
- if hasattr(content, '__iter__'):
+ if not isinstance(content, basestring) and hasattr(content,
'__iter__'):
self._container = content
self._is_string = False
else:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---