1
0
Fork 0
firefox/testing/web-platform/tests/fetch/api/resources/script-with-header.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

7 lines
286 B
Python

def main(request, response):
headers = [(b"Content-type", request.GET.first(b"mime"))]
if b"content" in request.GET and request.GET.first(b"content") == b"empty":
content = b''
else:
content = b"console.log('Script loaded')"
return 200, headers, content