Beispiel #1
0
 def __call__(self, env, start_response):
     self.req = Request(env)
     resp = Response(request=self.req, body=b'FAKE APP',
                     headers=self.headers)
     # like webob, middlewares in the pipeline may rewrite
     # location header from relative to absolute
     resp.location = resp.absolute_location()
     return resp(env, start_response)
Beispiel #2
0
 def __call__(self, env, start_response):
     self.req = Request(env)
     resp = Response(request=self.req, body='FAKE APP',
                     headers=self.headers)
     # like webob, middlewares in the pipeline may rewrite
     # location header from relative to absolute
     resp.location = resp.absolute_location()
     return resp(env, start_response)