diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-05-28 13:49:15 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-05-28 13:49:15 +0000 |
| commit | d879bce16648ce7a4ae4df8f36a9c2c5cf5b7f81 (patch) | |
| tree | 316ff74207acc7f2c0322542c965dadece6fa9a6 | |
| parent | 443d5b43efbf78d01f952ae73bbd00534a71eb07 (diff) | |
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
| -rw-r--r-- | django/core/handlers/modpython.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
