aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/common/echo.py
diff options
context:
space:
mode:
authorWPT Sync Bot <josh+wptsync@joshmatthews.net>2019-03-28 22:09:18 -0400
committerWPT Sync Bot <josh+wptsync@joshmatthews.net>2019-03-29 00:51:32 -0400
commitcb63cfd5c7ad6c8088f8b3ccf11f0fa801fe2d89 (patch)
tree29f73fb04914e18c7c8d1975f83f6c9c1818f986 /tests/wpt/web-platform-tests/common/echo.py
parentfcd6beb60819ef2960f70d10e82fa31ba56cc99b (diff)
downloadservo-cb63cfd5c7ad6c8088f8b3ccf11f0fa801fe2d89.tar.gz
servo-cb63cfd5c7ad6c8088f8b3ccf11f0fa801fe2d89.zip
Update web-platform-tests to revision 3bfdeb8976fc51748935c8d1f1014dfba8e08dfb
Diffstat (limited to 'tests/wpt/web-platform-tests/common/echo.py')
-rw-r--r--tests/wpt/web-platform-tests/common/echo.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/common/echo.py b/tests/wpt/web-platform-tests/common/echo.py
new file mode 100644
index 00000000000..2ee403645b1
--- /dev/null
+++ b/tests/wpt/web-platform-tests/common/echo.py
@@ -0,0 +1,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")