Drop Youtube oembed HTTPS hack
upstream ships it now that way
This commit is contained in:
parent
c9729d66d6
commit
dd45b79a98
2 changed files with 1 additions and 3 deletions
|
|
@ -15,8 +15,6 @@ oembed_provider_list = [
|
|||
OEmbed::Providers::Flickr
|
||||
]
|
||||
|
||||
OEmbed::Providers::Youtube.endpoint += "?scheme=https"
|
||||
|
||||
oembed_providers = YAML.load_file(Rails.root.join("config", "oembed_providers.yml"))
|
||||
|
||||
oembed_providers.each do |provider_name, provider|
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ describe StreamsController, :type => :controller do
|
|||
it "generates a jasmine fixture with a post containing a video", :fixture => true do
|
||||
stub_request(
|
||||
:get,
|
||||
"http://www.youtube.com/oembed?format=json&frame=1&iframe=1&maxheight=420&maxwidth=420&scheme=https?scheme=https&url=http://www.youtube.com/watch?v=UYrkQL1bX4A"
|
||||
"http://www.youtube.com/oembed?format=json&frame=1&iframe=1&maxheight=420&maxwidth=420&scheme=https&url=http://www.youtube.com/watch?v=UYrkQL1bX4A"
|
||||
).with(
|
||||
:headers => {'Accept'=>'*/*'}
|
||||
).to_return(
|
||||
|
|
|
|||
Loading…
Reference in a new issue