chore: add the suggestions

This commit is contained in:
Emilien
2025-06-14 18:01:44 +02:00
committed by Émilien (perso)
parent 324a416fd4
commit 42b955d713
4 changed files with 16 additions and 22 deletions

View File

@@ -63,6 +63,7 @@ module Invidious::Routes::BeforeAll
"/videoplayback",
"/latest_version",
"/download",
"/companion/",
}.any? { |r| env.request.resource.starts_with? r }
if env.request.cookies.has_key? "SID"

View File

@@ -28,10 +28,6 @@ module Invidious::Routes::Companion
env.response.headers[key] = value
end
if response.status_code >= 300
return env.response.headers.delete("Transfer-Encoding")
end
return proxy_file(response, env)
return IO.copy response.body_io, env.response
end
end