From 6db329de13a98f2a684f770d9d3bab23f7a648c7 Mon Sep 17 00:00:00 2001 From: Andrea Spacca Date: Tue, 16 Nov 2021 09:38:04 +0100 Subject: [PATCH] fix url --- src/components/Player.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/Player.vue b/src/components/Player.vue index 072dc83e..ff2e2a95 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -222,13 +222,14 @@ export default { ) { url.searchParams.set("host", url.host); url.host = proxyHost; - request.uris[0] = proxyPath + url.toString(); + url.pathname = proxyPath + url.pathname; + request.uris[0] = url.toString(); } - if (url.pathname === "/videoplayback") { + if (url.pathname === proxyPath + "/videoplayback") { if (headers.Range) { url.searchParams.set("range", headers.Range.split("=")[1]); request.headers = {}; - request.uris[0] = proxyPath + url.toString(); + request.uris[0] = url.toString(); } } });