add httparty option config

This commit is contained in:
r888888888
2017-07-12 15:52:09 -07:00
parent 7f4d3052b3
commit 97ce9cafac
17 changed files with 22 additions and 22 deletions

View File

@@ -28,7 +28,7 @@ class PopularSearchService
Cache.get("ps-#{scale}-#{dates}", 1.minute) do
url = "#{Danbooru.config.reportbooru_server}/hits/#{scale}?date=#{dates}"
response = HTTParty.get(url, timeout: 3)
response = HTTParty.get(url, Danbooru.config.httparty_options.reverse_merge(timeout: 3))
if response.success?
response = response.body
else