# HG changeset patch
# User Jeff Hammel <jhammel@mozilla.com>
# Date 1321559381 28800
# Node ID 1a7bbd97dda4e69220e9cd3f716095c78cd11492
# Parent  e07b0f675c1724eb62040dac53c172dea0a4c6e7
work around a horrible downstream issue

diff -r e07b0f675c17 -r 1a7bbd97dda4 wsgintegrate/dispatcher.py
--- 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)