summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/signed-exchange/resources/service-worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/signed-exchange/resources/service-worker.js')
-rw-r--r--testing/web-platform/tests/signed-exchange/resources/service-worker.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/web-platform/tests/signed-exchange/resources/service-worker.js b/testing/web-platform/tests/signed-exchange/resources/service-worker.js
new file mode 100644
index 0000000000..2647f45a3e
--- /dev/null
+++ b/testing/web-platform/tests/signed-exchange/resources/service-worker.js
@@ -0,0 +1,5 @@
+self.addEventListener('fetch', function(event) {
+ event.respondWith(new Response(
+ '<body>Generated by service worker</body>',
+ {headers:[['content-type', 'text/html']]}));
+});