Files
tubestation/testing/web-platform/tests/common/echo.py
ziransun 0cc513db5d Bug 1651021 [wpt PR 24482] - Python 3: port some tests in common and infrastructure, a=testonly
Automatic update from web-platform-tests
Python 3: port some tests in common and infrastructure (#24482)

--

wpt-commits: 924cdb5f242893239b3835a5c78a5a7a8deec240
wpt-pr: 24482
2020-07-10 10:38:19 +00:00

7 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")