equal
deleted
inserted
replaced
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, |