From: Bo Zhu Date: Mon, 18 Jun 2012 02:30:29 +0000 (-0400) Subject: fixed the bug that RequestHandler.add_header doesn't work for WSGI applications X-Git-Tag: v2.4.0~59^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea6469874c2834d6cd780fb8f0099a2b7cf2bd93;p=thirdparty%2Ftornado.git fixed the bug that RequestHandler.add_header doesn't work for WSGI applications --- 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)))