mirror of
https://github.com/django/django.git
synced 2025-10-27 07:36:08 +00:00
Fixed #333 and #440 -- Split DEFAULT_MIME_TYPE setting into DEFAULT_CONTENT_TYPE and DEFAULT_CHARSET. Thanks, Maniac.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@786 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -167,6 +167,6 @@ class WSGIHandler(BaseHandler):
|
||||
response_headers = response.headers.items()
|
||||
for c in response.cookies.values():
|
||||
response_headers.append(('Set-Cookie', c.output(header='')))
|
||||
output = [response.get_content_as_string('utf-8')]
|
||||
output = [response.get_content_as_string(settings.DEFAULT_CHARSET)]
|
||||
start_response(status, response_headers)
|
||||
return output
|
||||
|
||||
Reference in New Issue
Block a user