diff options
author | ianb <devnull@localhost> | 2007-03-06 04:02:09 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2007-03-06 04:02:09 +0000 |
commit | cd7820a4405f3f8826b8203f89d95a4807cc60ee (patch) | |
tree | 9ea33e273f202749df988527c2d7d1a60bb3dffc /paste/httpexceptions.py | |
parent | 2f975cbcc3b085a31c351b0499b4f5b7b94f168b (diff) | |
download | paste-cd7820a4405f3f8826b8203f89d95a4807cc60ee.tar.gz |
Updated the way httpexception response objects are created, in response to damjam's comment on #156
Diffstat (limited to 'paste/httpexceptions.py')
-rw-r--r-- | paste/httpexceptions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/httpexceptions.py b/paste/httpexceptions.py index ce8bef2..946f8f3 100644 --- a/paste/httpexceptions.py +++ b/paste/httpexceptions.py @@ -248,7 +248,7 @@ class HTTPException(Exception): from paste.wsgiwrappers import WSGIResponse headers, content = self.prepare_content(environ) resp = WSGIResponse(code=self.code, content=content) - resp.headers.update(dict(headers)) + resp.headers = resp.headers.fromlist(headers) return resp def wsgi_application(self, environ, start_response, exc_info=None): |