Use https for ggpht requests

pull/2364/head
syeopite 2021-10-08 06:11:10 -07:00
rodzic 6b8450558d
commit 547abe17d9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6FA616E5A5294A82
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -48,13 +48,13 @@ module Invidious::Routes::Images
return request_proc.call(resp) return request_proc.call(resp)
end end
else 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) return request_proc.call(resp)
end end
end end
{% else %} {% else %}
# This can likely be optimized into a (small) pool sometime in the future. # 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) return request_proc.call(resp)
end end
{% end %} {% end %}