Index: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-preload/resources/resource-timing-scope.py |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-preload/resources/resource-timing-scope.py b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-preload/resources/resource-timing-scope.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a4fbd98b631445dd4c47e68b86001eebe712158a |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-preload/resources/resource-timing-scope.py |
@@ -0,0 +1,13 @@ |
+import zlib |
+ |
+def main(request, response): |
+ content = "This is Navigation Preload Resource Timing test." |
+ output = zlib.compress(content, 9) |
+ |
+ headers = [("Content-type", "text/plain"), |
+ ("Content-Encoding", "deflate"), |
+ ("X-Decoded-Body-Size", len(content)), |
+ ("X-Encoded-Body-Size", len(output)), |
+ ("Content-Length", len(output))] |
+ |
+ return headers, output |