URLs in JSON file always point to https://

This commit is contained in:
Christoph Haas 2016-07-19 17:02:33 +02:00
parent f6c7973435
commit e1f8ccec94
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
json.package @p.name
json.screenshots @p.screenshots do |s|
json.small_image_url "#{request.protocol}#{request.host_with_port}#{s.image.url(:thumb, timestamp: false)}"
json.large_image_url "#{request.protocol}#{request.host_with_port}#{s.image.url(:large, timestamp: false)}"
json.small_image_url "https://#{request.host_with_port}#{s.image.url(:thumb, timestamp: false)}"
json.large_image_url "https://#{request.host_with_port}#{s.image.url(:large, timestamp: false)}"
json.version s.version
end