From 547abe17d974fe783ad3d83234c48cd042fd42dd Mon Sep 17 00:00:00 2001 From: syeopite Date: Fri, 8 Oct 2021 06:11:10 -0700 Subject: [PATCH] Use https for ggpht requests --- src/invidious/routes/images.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invidious/routes/images.cr b/src/invidious/routes/images.cr index d14427f73..1ad0bd3a7 100644 --- a/src/invidious/routes/images.cr +++ b/src/invidious/routes/images.cr @@ -48,13 +48,13 @@ module Invidious::Routes::Images return request_proc.call(resp) end else - HTTP::Client.get("yt3.ggpht.com#{url}") do |resp| + HTTP::Client.get("https://yt3.ggpht.com#{url}") do |resp| return request_proc.call(resp) end end {% else %} # This can likely be optimized into a (small) pool sometime in the future. - HTTP::Client.get("yt3.ggpht.com#{url}") do |resp| + HTTP::Client.get("https://yt3.ggpht.com#{url}") do |resp| return request_proc.call(resp) end {% end %}