fix: remove fake Content-Length header for non-2xx image responses (#6062)

* fix: remove Content-Length header for non-2xx image responses

it's a lie

* fix: remove check

---------

Co-authored-by: Fijxu <fijxu@nadeko.net>
This commit is contained in:
Alex EpeldeandFijxu authored and GitHub committed 2026-10-22 00:42:03 -03:00
1 parent efcfb1ef03
commit 3c9555de30
1 file changed
-4
-4
View File
@@ -154,10 +154,6 @@ module Invidious::Routes::Images
env.response.headers["Access-Control-Allow-Origin"] = "*"
if response.status_code >= 300
return env.response.headers.delete("Transfer-Encoding")
end
return Helpers.proxy_file(response, env)
end
end