Slight cleanup to r16829, thanks Alex Gaynor for the note.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16830 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Paul McMillan 2011-09-14 23:58:12 +00:00
parent 50255e3305
commit 2fa433ed55
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ class HttpResponse(object):
if not content_type:
content_type = "%s; charset=%s" % (settings.DEFAULT_CONTENT_TYPE,
self._charset)
HttpResponse._set_content(self, content)
self.content = content
self.cookies = SimpleCookie()
if status:
self.status_code = status