From 814c9e6c3ae81664acec6ab91e782eaca8ed0f75 Mon Sep 17 00:00:00 2001 From: syeopite Date: Fri, 8 Oct 2021 06:14:37 -0700 Subject: [PATCH] Use https for storyboard image requests --- src/invidious/routes/images.cr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/invidious/routes/images.cr b/src/invidious/routes/images.cr index 1ad0bd3a..a10e0963 100644 --- a/src/invidious/routes/images.cr +++ b/src/invidious/routes/images.cr @@ -113,13 +113,13 @@ module Invidious::Routes::Images return request_proc.call(resp) end else - HTTP::Client.get("#{authority}.ytimg.com#{url}") do |resp| + HTTP::Client.get("https://#{authority}.ytimg.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("#{authority}.ytimg.com#{url}") do |resp| + HTTP::Client.get("https://#{authority}.ytimg.com#{url}") do |resp| return request_proc.call(resp) end {% end %} @@ -175,13 +175,13 @@ module Invidious::Routes::Images return request_proc.call(resp) end else - HTTP::Client.get("i9.ytimg.com#{url}") do |resp| + HTTP::Client.get("https://i9.ytimg.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("i9.ytimg.com#{url}") do |resp| + HTTP::Client.get("https://i9.ytimg.com#{url}") do |resp| return request_proc.call(resp) end {% end %}