Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #3437 -- Fixed incorrect logic in django.http.HttpResponse calc…

…ulation of _is_string. Thanks, Brian Harring

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4472 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ae36e6303df82656a8bdee4501b50d20537a9c53 1 parent 45e0a52
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/http/__init__.py
View
2  django/http/__init__.py
@@ -160,7 +160,7 @@ def __init__(self, content='', mimetype=None):
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:
Please sign in to comment.
Something went wrong with that request. Please try again.