summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/encoding/resources/single-byte-raw.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/encoding/resources/single-byte-raw.py')
-rw-r--r--testing/web-platform/tests/encoding/resources/single-byte-raw.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/web-platform/tests/encoding/resources/single-byte-raw.py b/testing/web-platform/tests/encoding/resources/single-byte-raw.py
new file mode 100644
index 000000000..b4a6c9040
--- /dev/null
+++ b/testing/web-platform/tests/encoding/resources/single-byte-raw.py
@@ -0,0 +1,3 @@
+def main(request, response):
+ response.headers.set("Content-Type", "text/plain;charset=" + request.GET.first("label"))
+ response.content = "".join(chr(byte) for byte in xrange(255))