lib/onebox/helpers.rb in onebox-1.8.27 vs lib/onebox/helpers.rb in onebox-1.8.28
- old
+ new
@@ -37,10 +37,10 @@
end
og
end
- def self.fetch_html_doc(url, headers=nil)
+ def self.fetch_html_doc(url, headers = nil)
response = (fetch_response(url, nil, nil, headers) rescue nil)
doc = Nokogiri::HTML(response)
ignore_canonical = doc.at('meta[property="og:ignore_canonical"]')
unless ignore_canonical && ignore_canonical['content'].to_s == 'true'