aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/common/echo.py
blob: 2ee403645b1bb27cdb27bcea716e166729b81af8 (plain) (blame)
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("X-XSS-Protection", "0")
    response.headers.set("Content-Type", "text/html")
    response.content = request.GET.first("content")