Commits

Laurence Rowe  committed 0abc661 Draft

End-of-request event handlers may have modified the response, so get it again.

  • Participants
  • Parent commits 1497ce0
  • Branches 2.0

Comments (0)

Files changed (1)

File src/infrae/wsgi/publisher.py

             # fail, we can retry the request since we didn't send
             # anything.
             self.finish()
+
+            # End-of-request event handlers may have modified the response, so
+            # get it again
+            ignored, data = self.response.getWSGIResponse()
+
         return data
 
     def error(self, error, last_known_obj):