mirror of
https://github.com/iv-org/invidious.git
synced 2026-10-24 05:32:51 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user