1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

unicode: Ensure that all the strings we put into a mod_python response are

strings.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5377 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-05-28 13:49:15 +00:00
parent 443d5b43ef
commit d879bce166

View File

@ -160,7 +160,7 @@ class ModPythonHandler(BaseHandler):
req.content_type = response['Content-Type'] req.content_type = response['Content-Type']
for key, value in response.headers.items(): for key, value in response.headers.items():
if key != 'Content-Type': if key != 'Content-Type':
req.headers_out[key] = value req.headers_out[str(key)] = str(value)
for c in response.cookies.values(): for c in response.cookies.values():
req.headers_out.add('Set-Cookie', c.output(header='')) req.headers_out.add('Set-Cookie', c.output(header=''))
req.status = response.status_code req.status = response.status_code