gecko-dev/testing/web-platform/tests/common/echo.py
Anne van Kesteren 8494b19f13 Bug 1535520 [wpt PR 15769] - HTML: named objects of navigated documents, a=testonly
Automatic update from web-platform-tests
HTML: named objects of navigated documents

For https://github.com/whatwg/html/pull/4404.
--

wpt-commits: 52bd6d9692ccd589c089d89bf59142cfc0e98288
wpt-pr: 15769
2019-04-24 11:31:44 +01:00

6 lines
311 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("X-XSS-Protection", "0")
response.headers.set("Content-Type", "text/html")
response.content = request.GET.first("content")