1
0
Fork 0
firefox/testing/web-platform/tests/loading/early-hints/resources/resume-delayed-js.h2.py
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

10 lines
345 B
Python

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