1
0
Fork 0
firefox/testing/web-platform/tests/common/echo.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

6 lines
316 B
Python

def main(request, response):
# Without X-XSS-Protection to disable non-standard XSS protection the functionality this
# resource offers is useless
response.headers.set(b"X-XSS-Protection", b"0")
response.headers.set(b"Content-Type", b"text/html")
response.content = request.GET.first(b"content")