sources: use http client from base strategy.

This commit is contained in:
evazion
2020-08-17 15:30:01 -05:00
parent e196514de8
commit 160b099445
8 changed files with 12 additions and 17 deletions

View File

@@ -266,7 +266,7 @@ module Sources
def page
return nil if page_url_from_image_url.blank?
resp = Danbooru::Http.cache(1.minute).get(page_url_from_image_url, follow: {max_hops: 1})
resp = http.cache(1.minute).get(page_url_from_image_url, follow: {max_hops: 1})
if resp.status.success?
Nokogiri::HTML(resp.body.to_s)