]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
fixed the bug that RequestHandler.add_header doesn't work for WSGI applications 540/head
authorBo Zhu <zhubo03@gmail.com>
Mon, 18 Jun 2012 02:30:29 +0000 (22:30 -0400)
committerBo Zhu <zhubo03@gmail.com>
Mon, 18 Jun 2012 02:30:29 +0000 (22:30 -0400)
tornado/wsgi.py

index e0b11d330e595cddf028604d540a3eba60042078..e714ec1dd28521557ad08029864ea2480c2d1749 100644 (file)
@@ -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)))