Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AuthMiddleware:
- def __init__(self, app):
- self.app = app
- def __call__(self, environ, start_response):
- # status = "301 Moved Permanently"
- # headers = [('Location', 'http://localhost:4455?next')]
- #
- # start_response(status, headers)
- redirect(url_for('http://localhost:4455', next='http://0.0.0.0:5000'))
- return self.app(environ, start_response)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement