summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/common/echo.py
blob: 911b54a0b488b9c148a29d5d1cd942d4fbca57b4 (plain)
1
2
3
4
5
6
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")