Skip to content

Commit e0f8713

Browse files
committed
pass Host header to hls manifest
1 parent b4b0a8a commit e0f8713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/invidious/routes/api/manifest.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ module Invidious::Routes::API::Manifest
237237
manifest = response.body
238238

239239
if local
240-
manifest = manifest.gsub("https://www.youtube.com", HOST_URL)
240+
manifest = manifest.gsub("https://www.youtube.com", env.request.headers["Host"])
241241
manifest = manifest.gsub("index.m3u8", "index.m3u8?local=true")
242242
end
243243

0 commit comments

Comments
 (0)