From 48191aca6eb5e128191322ae5bb5d919f28b2770 Mon Sep 17 00:00:00 2001 From: syeopite Date: Fri, 8 Oct 2021 06:35:45 -0700 Subject: [PATCH] Fix copy-paste error --- src/invidious/routes/images.cr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/invidious/routes/images.cr b/src/invidious/routes/images.cr index 2272a941..823cf13c 100644 --- a/src/invidious/routes/images.cr +++ b/src/invidious/routes/images.cr @@ -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)