summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/loading/early-hints/resources/resume-delayed-js.h2.py
blob: 132f038ac90faf793bd59d6e1af793775a07b505 (plain)
1
2
3
4
5
6
7
8
9
10
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