Use https for storyboard image requests

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

Wyświetl plik

@ -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 %}