lib/onebox/engine/html.rb in onebox-1.8.25 vs lib/onebox/engine/html.rb in onebox-1.8.26
- old
+ new
@@ -7,10 +7,10 @@
def http_params
{}
end
def raw
- @raw ||= Nokogiri::HTML(open(url, { read_timeout: timeout }.merge(http_params)).read)
+ @raw ||= Onebox::Helpers.fetch_html_doc(url, http_params)
end
def html?
raw.respond_to(:css)
end