mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
fix url
This commit is contained in:
parent
2ad4be961b
commit
6db329de13
1 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue