lib/onebox/engine/google_docs_onebox.rb in onebox-2.2.8 vs lib/onebox/engine/google_docs_onebox.rb in onebox-2.2.9
- old
+ new
@@ -45,10 +45,10 @@
def match
@match ||= @url.match(@@matcher)
end
def get_og_data
- response = Onebox::Helpers.fetch_response(url, 10) rescue nil
+ response = Onebox::Helpers.fetch_response(url, redirect_limit: 10) rescue nil
html = Nokogiri::HTML(response)
og_data = {}
html.css('meta').each do |m|
if m.attribute('property') && m.attribute('property').to_s.match(/^og:/i)
m_content = m.attribute('content').to_s.strip