Skip to content

Commit 6c58a27

Browse files
committed
fix: ensure headers are properly cloned
1 parent 4a1fa4d commit 6c58a27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/app/component/gif.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const gif = (() => {
7373
*/
7474
const fetchPut = (c, retries = 3, delay = 1000) => request(HTTP_GET, url)
7575
.default()
76-
.then((r) => r.blob().then((b) => c.put(url, new Response(b, { headers: r.headers })).then(() => b)))
76+
.then((r) => r.blob().then((b) => c.put(url, new Response(b, { headers: new Headers(r.headers) })).then(() => b)))
7777
.catch((err) => {
7878
if (retries <= 0) {
7979
throw err;

0 commit comments

Comments
 (0)