mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-07 05:42:26 -04:00
pass Host header to hls manifest
This commit is contained in:
parent
b4b0a8ab75
commit
e0f8713fb5
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ module Invidious::Routes::API::Manifest
|
|||
manifest = response.body
|
||||
|
||||
if local
|
||||
manifest = manifest.gsub("https://www.youtube.com", HOST_URL)
|
||||
manifest = manifest.gsub("https://www.youtube.com", env.request.headers["Host"])
|
||||
manifest = manifest.gsub("index.m3u8", "index.m3u8?local=true")
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue