diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2007-09-14 22:33:56 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2007-09-14 22:33:56 +0000 |
| commit | ca9388cdaf905e12560c751ca55f8237303e4494 (patch) | |
| tree | 9d83a5a092579c27167bc2be5d2ae1f7f7b9657d /django/core/handlers/modpython.py | |
| parent | 71796410ba8e292a39610a4435f7693ca37b4289 (diff) | |
Added more dict-like methods to HttpResponse as part of the response.headers -> response._headers move, and fixed a few direct uses of response.headers in Django itself. Thanks to PhiR for tracking down and slaying these bugs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6235 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core/handlers/modpython.py')
| -rw-r--r-- | django/core/handlers/modpython.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/core/handlers/modpython.py b/django/core/handlers/modpython.py index 7c4bbb3082..f98566be96 100644 --- a/django/core/handlers/modpython.py +++ b/django/core/handlers/modpython.py @@ -159,8 +159,8 @@ class ModPythonHandler(BaseHandler): # Convert our custom HttpResponse object back into the mod_python req. req.content_type = response['Content-Type'] - for key, value in response.headers.items(): - if key != 'Content-Type': + for key, value in response.items(): + if key != 'content-type': req.headers_out[str(key)] = str(value) for c in response.cookies.values(): req.headers_out.add('Set-Cookie', c.output(header='')) |
