lib/onebox/engine/soundcloud_onebox.rb in onebox-1.5.21 vs lib/onebox/engine/soundcloud_onebox.rb in onebox-1.5.22

- old
+ new

@@ -3,10 +3,11 @@ class SoundCloudOnebox include Engine include StandardEmbed matches_regexp(/^https?:\/\/.*soundcloud\.com/) + always_https def to_html get_oembed_data[:html].gsub!('height="400"', 'height="250"') end @@ -15,10 +16,10 @@ end private def get_oembed_data - Onebox::Helpers.symbolize_keys(::MultiJson.load(Onebox::Helpers.fetch_response("http://soundcloud.com/oembed.json?url=#{url}").body)) + Onebox::Helpers.symbolize_keys(::MultiJson.load(Onebox::Helpers.fetch_response("https://soundcloud.com/oembed.json?url=#{url}").body)) end end end end