blob: 6ec9349565aeb867fd5e46916c475c1f1f6996d2 [file] [log] [blame]
def main(request, response):
code = int(request.GET.first("code", 302))
location = request.GET.first("location", request.url_parts.path +"?followed")
if request.url.endswith("?followed"):
return [("Content:Type", "text/plain")], "MAGIC HAPPENED"
else:
return (code, "WEBSRT MARKETING"), [("Location", location)], "TEST"