etwist/server.py
changeset 8695 358d8bed9626
parent 8694 d901c36bcfce
child 8703 db3164d09765
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
   167             path = origpath
   167             path = origpath
   168         req = CubicWebTwistedRequestAdapter(request, self.appli.vreg, https)
   168         req = CubicWebTwistedRequestAdapter(request, self.appli.vreg, https)
   169         try:
   169         try:
   170             ### Try to generate the actual request content
   170             ### Try to generate the actual request content
   171             content = self.appli.handle_request(req, path)
   171             content = self.appli.handle_request(req, path)
   172         except DirectResponse, ex:
   172         except DirectResponse as ex:
   173             return ex.response
   173             return ex.response
   174         # at last: create twisted object
   174         # at last: create twisted object
   175         return HTTPResponse(code    = req.status_out,
   175         return HTTPResponse(code    = req.status_out,
   176                             headers = req.headers_out,
   176                             headers = req.headers_out,
   177                             stream  = content,
   177                             stream  = content,