Skip to content

Commit

Permalink
chore: removed encodeURIComponent for href in proxyMedia
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyhalight committed Jan 2, 2025
1 parent 132d42c commit 351f958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shared/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export function proxyMedia(url: URL | string, format: "mp4" | "webm" = "mp4") {
if (!(url instanceof URL)) {
return `${generalUrl}&url=${btoa(url)}`;
}
return `${generalUrl}&url=${btoa(encodeURIComponent(url.href))}&origin=${
return `${generalUrl}&url=${btoa(url.href)}&origin=${url.origin}&referer=${
url.origin
}&referer=${url.origin}`;
}`;
}

0 comments on commit 351f958

Please sign in to comment.