summaryrefslogtreecommitdiffstats
path: root/test/wpt/tests/fetch/content-encoding/resources
diff options
context:
space:
mode:
Diffstat (limited to 'test/wpt/tests/fetch/content-encoding/resources')
-rw-r--r--test/wpt/tests/fetch/content-encoding/resources/bad-gzip-body.py3
-rw-r--r--test/wpt/tests/fetch/content-encoding/resources/foo.octetstream.gzbin0 -> 64 bytes
-rw-r--r--test/wpt/tests/fetch/content-encoding/resources/foo.octetstream.gz.headers2
-rw-r--r--test/wpt/tests/fetch/content-encoding/resources/foo.text.gzbin0 -> 57 bytes
-rw-r--r--test/wpt/tests/fetch/content-encoding/resources/foo.text.gz.headers2
5 files changed, 7 insertions, 0 deletions
diff --git a/test/wpt/tests/fetch/content-encoding/resources/bad-gzip-body.py b/test/wpt/tests/fetch/content-encoding/resources/bad-gzip-body.py
new file mode 100644
index 0000000..a79b94e
--- /dev/null
+++ b/test/wpt/tests/fetch/content-encoding/resources/bad-gzip-body.py
@@ -0,0 +1,3 @@
+def main(request, response):
+ headers = [(b"Content-Encoding", b"gzip")]
+ return headers, b"not actually gzip"
diff --git a/test/wpt/tests/fetch/content-encoding/resources/foo.octetstream.gz b/test/wpt/tests/fetch/content-encoding/resources/foo.octetstream.gz
new file mode 100644
index 0000000..f3df4cb
--- /dev/null
+++ b/test/wpt/tests/fetch/content-encoding/resources/foo.octetstream.gz
Binary files differ
diff --git a/test/wpt/tests/fetch/content-encoding/resources/foo.octetstream.gz.headers b/test/wpt/tests/fetch/content-encoding/resources/foo.octetstream.gz.headers
new file mode 100644
index 0000000..27d4f40
--- /dev/null
+++ b/test/wpt/tests/fetch/content-encoding/resources/foo.octetstream.gz.headers
@@ -0,0 +1,2 @@
+Content-type: application/octet-stream
+Content-Encoding: gzip
diff --git a/test/wpt/tests/fetch/content-encoding/resources/foo.text.gz b/test/wpt/tests/fetch/content-encoding/resources/foo.text.gz
new file mode 100644
index 0000000..05a5cce
--- /dev/null
+++ b/test/wpt/tests/fetch/content-encoding/resources/foo.text.gz
Binary files differ
diff --git a/test/wpt/tests/fetch/content-encoding/resources/foo.text.gz.headers b/test/wpt/tests/fetch/content-encoding/resources/foo.text.gz.headers
new file mode 100644
index 0000000..7def3dd
--- /dev/null
+++ b/test/wpt/tests/fetch/content-encoding/resources/foo.text.gz.headers
@@ -0,0 +1,2 @@
+Content-type: text/plain
+Content-Encoding: gzip