From ea6469874c2834d6cd780fb8f0099a2b7cf2bd93 Mon Sep 17 00:00:00 2001 From: Bo Zhu Date: Sun, 17 Jun 2012 22:30:29 -0400 Subject: [PATCH] fixed the bug that RequestHandler.add_header doesn't work for WSGI applications --- tornado/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/wsgi.py b/tornado/wsgi.py index e0b11d330..e714ec1dd 100644 --- a/tornado/wsgi.py +++ b/tornado/wsgi.py @@ -94,7 +94,7 @@ class WSGIApplication(web.Application): assert handler._finished status = str(handler._status_code) + " " + \ httplib.responses[handler._status_code] - headers = handler._headers.items() + headers = handler._headers.items() + handler._list_headers if hasattr(handler, "_new_cookie"): for cookie in handler._new_cookie.values(): headers.append(("Set-Cookie", cookie.OutputString(None))) -- 2.47.2