Skip to content

Commit

Permalink
Headers obj bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Toasty360 committed Dec 30, 2024
1 parent 96e3383 commit 3bf0ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async function proxy(request) {
const basePath = `${baseUrl.protocol}//${baseUrl.host}${baseUrl.pathname.substring(0, baseUrl.pathname.lastIndexOf('/') + 1)}`;
response = await fetch(mediaUrl, {
headers: {
...Object.fromEntries(decodedHeaders.entries()),
...decodedHeaders,
'Accept-Encoding': 'gzip, deflate, br',
Connection: 'keep-alive',
},
Expand Down

0 comments on commit 3bf0ff1

Please # to comment.