Skip to content

Commit 3bf0ff1

Browse files
committed
Headers obj bug fix
1 parent 96e3383 commit 3bf0ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ async function proxy(request) {
9595
const basePath = `${baseUrl.protocol}//${baseUrl.host}${baseUrl.pathname.substring(0, baseUrl.pathname.lastIndexOf('/') + 1)}`;
9696
response = await fetch(mediaUrl, {
9797
headers: {
98-
...Object.fromEntries(decodedHeaders.entries()),
98+
...decodedHeaders,
9999
'Accept-Encoding': 'gzip, deflate, br',
100100
Connection: 'keep-alive',
101101
},

0 commit comments

Comments
 (0)