mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-31 14:11:54 +05:30
Use https for storyboard image requests
This commit is contained in:
@@ -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 %}
|
||||||
|
Reference in New Issue
Block a user