Fix copy-paste error

This commit is contained in:
syeopite 2021-10-08 06:35:45 -07:00
parent 83556bace2
commit 48191aca6e
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82

View File

@ -263,8 +263,7 @@ module Invidious::Routes::Images
env.response.headers["Access-Control-Allow-Origin"] = "*"
if response.status_code >= 300 && response.status_code != 404
env.response.headers.delete("Transfer-Encoding")
return
return env.response.headers.delete("Transfer-Encoding")
end
proxy_file(response, env)