Skip to content

Commit

Permalink
fix: Mixed content on redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Sep 9, 2024
1 parent 539368e commit c7b1b2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/stitcher/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ async function buildServer() {

const session = await createSession(body);

const baseUrl =
env.STITCHER_BASE_URL ?? `${request.protocol}://${request.hostname}`;

return reply.redirect(
`${request.protocol}://${request.hostname}/session/${session.id}/master.m3u8`,
`${baseUrl}/session/${session.id}/master.m3u8`,
302,
);
},
Expand Down

0 comments on commit c7b1b2b

Please sign in to comment.