mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-16 09:58:50 +00:00
chore: add the suggestions
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user