Skip to content

Commit

Permalink
fix: decode url for resource path
Browse files Browse the repository at this point in the history
  • Loading branch information
mbret committed Aug 22, 2024
1 parent ed7c6b4 commit 1864843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/streamer/src/ServiceWorkerStreamer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export class ServiceWorkerStreamer extends Streamer {
baseUrl.length + `/`.length,
)
const [key = ``] = streamerPath.split("/")
const resourcePath = removeTrailingSlash(
streamerPath.substring(key.length + `/`.length),
const resourcePath = decodeURIComponent(
removeTrailingSlash(streamerPath.substring(key.length + `/`.length)),
)

if (streamerPath.endsWith(`/manifest`)) {
Expand Down

0 comments on commit 1864843

Please sign in to comment.