blob: 2979d5ed6d6fa50b262adaf1c66569bf3e5f38d8 [file] [log] [blame]
def main(request, response):
headers = [("Content-Type", "text/plain"),
("Cache-Control", "no-cache"),
("Pragma", "no-cache")]
if "store" in request.GET:
request.server.stash.put(request.GET['token'], request.headers.get("DNT", "-1"))
return 200, headers, ""
return 200, headers, str(request.server.stash.take(request.GET['token']))