Source code
Revision control
Copy as Markdown
Other Tools
def main(request, response):
"""Simple handler that causes redirection.
This is placed here to stay within the same directory during redirects,
"""
response.status = 302
location = request.GET.first(b"location")
response.headers.set(b"Location", location)