mirror of https://github.com/django/django.git
Fixed #6063 -- Caught one place in HttpResponse that was not returning a str
type (violation of WSGI spec). Thanks, janusz.harkot@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6895 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
86c417077d
commit
01ca122774
|
@ -331,7 +331,7 @@ class HttpResponse(object):
|
|||
chunk = self._iterator.next()
|
||||
if isinstance(chunk, unicode):
|
||||
chunk = chunk.encode(self._charset)
|
||||
return chunk
|
||||
return str(chunk)
|
||||
|
||||
def close(self):
|
||||
if hasattr(self._container, 'close'):
|
||||
|
|
Loading…
Reference in New Issue