resume-delayed-js.h2.py (345B)
1 def main(request, response): 2 id = request.GET.first(b"id") 3 url_dir = u'/'.join(request.url_parts.path.split(u'/')[:-1]) + u'/' 4 request.server.stash.put(id, True, url_dir) 5 headers = [ 6 ("Content-Type", "text/plain"), 7 ("Access-Control-Allow-Origin", "*"), 8 ] 9 body = "OK" 10 return (200, "OK"), headers, body