mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-06 21:13:45 -04:00
pass Host header to hls manifest
This commit is contained in:
parent
b4b0a8ab75
commit
e0f8713fb5
@ -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…
x
Reference in New Issue
Block a user