          d.addCallback(lambda res, req: res.renderHTTP(req), self)
          d.addCallback(self._cbFinishRender)
          d.addErrback(self._processingFailed)
-@@ -321,7 +342,6 @@
+@@ -321,7 +345,6 @@
          if newpath is StopTraversal:
              # We need to rethink how to do this.
              #if newres is res:

         self.files = {}
         self.resources = []
         http.Request.__init__(self, *args, **kw)
+        self.serverInstance = self.chanRequest.transport.server.port
 
-    def addResponseFilter(self, f, atEnd=False):
+    def addResponseFilter(self, filter, atEnd=False, onlyOnce=False):

 
         #
         # Parse the URL
@@ -407,9 +431,13 @@
                 "URL is not on this site (%s://%s/): %s" % (scheme, self.headers.getHeader("host"), url)
             ))
 
