From 01ca12277401d5bc0b42d67cd6bf2292f7e1ec95 Mon Sep 17 00:00:00 2001
From: Malcolm Tredinnick <malcolm.tredinnick@gmail.com>
Date: Wed, 5 Dec 2007 09:28:56 +0000
Subject: [PATCH] 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
---
 django/http/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/django/http/__init__.py b/django/http/__init__.py
index 47f9736ce2..13cc8cea0d 100644
--- a/django/http/__init__.py
+++ b/django/http/__init__.py
@@ -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'):