blob: 132f038ac90faf793bd59d6e1af793775a07b505 [file] [log] [blame]
def main(request, response):
id = request.GET.first(b"id")
url_dir = u'/'.join(request.url_parts.path.split(u'/')[:-1]) + u'/'
request.server.stash.put(id, True, url_dir)
headers = [
("Content-Type", "text/plain"),
("Access-Control-Allow-Origin", "*"),
]
body = "OK"
return (200, "OK"), headers, body