lib/onebox/engine/google_docs_onebox.rb in onebox-1.5.48 vs lib/onebox/engine/google_docs_onebox.rb in onebox-1.5.49
- old
+ new
@@ -43,10 +43,10 @@
def match
@match ||= @url.match(@@matcher)
end
def get_og_data
- response = Onebox::Helpers.fetch_response(url)
+ response = Onebox::Helpers.fetch_response(url, 10)
html = Nokogiri::HTML(response.body)
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