changeset 15:1a7bbd97dda4

work around a horrible downstream issue
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 17 Nov 2011 11:49:41 -0800
parents e07b0f675c17
children b1a5abacf1f3
files wsgintegrate/dispatcher.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wsgintegrate/dispatcher.py	Thu Nov 17 11:43:25 2011 -0800
+++ b/wsgintegrate/dispatcher.py	Thu Nov 17 11:49:41 2011 -0800
@@ -26,5 +26,9 @@
                 raise
         else:
             response = exc.HTTPNotFound()
-        return response(environ, start_response)
+        try:
+            return response(environ, start_response)
+        except:
+            response.headerlist = [(i,str(j)) for i, j in response.headerlist]
+            return response(environ, start_response)