mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Use https for storyboard image requests
This commit is contained in:
parent
547abe17d9
commit
814c9e6c3a
1 changed files with 4 additions and 4 deletions
|
@ -113,13 +113,13 @@ module Invidious::Routes::Images
|
||||||
return request_proc.call(resp)
|
return request_proc.call(resp)
|
||||||
end
|
end
|
||||||
else
|
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)
|
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("#{authority}.ytimg.com#{url}") do |resp|
|
HTTP::Client.get("https://#{authority}.ytimg.com#{url}") do |resp|
|
||||||
return request_proc.call(resp)
|
return request_proc.call(resp)
|
||||||
end
|
end
|
||||||
{% end %}
|
{% end %}
|
||||||
|
@ -175,13 +175,13 @@ module Invidious::Routes::Images
|
||||||
return request_proc.call(resp)
|
return request_proc.call(resp)
|
||||||
end
|
end
|
||||||
else
|
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)
|
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("i9.ytimg.com#{url}") do |resp|
|
HTTP::Client.get("https://i9.ytimg.com#{url}") do |resp|
|
||||||
return request_proc.call(resp)
|
return request_proc.call(resp)
|
||||||
end
|
end
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
Loading…
Reference in a new issue