mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +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:
parent
443d5b43ef
commit
d879bce166
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user