From d879bce16648ce7a4ae4df8f36a9c2c5cf5b7f81 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 28 May 2007 13:49:15 +0000 Subject: [PATCH] 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 --- django/core/handlers/modpython.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py index cbb65bba5f..e26f234fe5 100644 --- a/django/core/handlers/modpython.py +++ b/django/core/handlers/modpython.py @@ -160,7 +160,7 @@ class ModPythonHandler(BaseHandler): req.content_type = response['Content-Type'] for key, value in response.headers.items(): if key != 'Content-Type': - req.headers_out[key] = value + req.headers_out[str(key)] = str(value) for c in response.cookies.values(): req.headers_out.add('Set-Cookie', c.output(header='')) req.status = response.status_code