From cd7820a4405f3f8826b8203f89d95a4807cc60ee Mon Sep 17 00:00:00 2001 From: ianb Date: Tue, 6 Mar 2007 04:02:09 +0000 Subject: Updated the way httpexception response objects are created, in response to damjam's comment on #156 --- paste/httpexceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'paste/httpexceptions.py') 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): -- cgit v1.2.1