aboutsummaryrefslogtreecommitdiff
path: root/browser/GMPolyfill.js
diff options
context:
space:
mode:
Diffstat (limited to 'browser/GMPolyfill.js')
-rw-r--r--browser/GMPolyfill.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/browser/GMPolyfill.js b/browser/GMPolyfill.js
index 3e0606d..6f05ca0 100644
--- a/browser/GMPolyfill.js
+++ b/browser/GMPolyfill.js
@@ -92,6 +92,7 @@ function GM_fetch(url, opt) {
resp.arrayBuffer = () => blobTo("arrayBuffer", blob);
resp.text = () => blobTo("text", blob);
resp.json = async () => JSON.parse(await blobTo("text", blob));
+ resp.headers = new Headers(parseHeaders(resp.responseHeaders));
resolve(resp);
};
options.ontimeout = () => reject("fetch timeout");