Index: content/test/data/service_worker/sync.js |
diff --git a/content/test/data/service_worker/sync.js b/content/test/data/service_worker/sync.js |
index 993e771778a505bc5ff78dedbe29a9d5655026fd..02da273ab376646fe4f4c2fd0bc282ec0bd2116f 100644 |
--- a/content/test/data/service_worker/sync.js |
+++ b/content/test/data/service_worker/sync.js |
@@ -6,13 +6,8 @@ var code = 404; |
this.onfetch = function(event) { |
response = new Response({ |
- statusCode: code, |
- statusText: 'OK', |
- method: 'GET', |
- headers: { |
- 'Content-Language': 'fi', |
- 'Content-Type': 'text/html; charset=UTF-8' |
- } |
+ status: code, |
+ statusText: 'OK' |
}); |
event.respondWith(new Promise(function(r) { |
@@ -22,4 +17,4 @@ this.onfetch = function(event) { |
this.onsync = function(event) { |
code = 200; |
-}; |
+}; |