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

@@ -20,7 +20,7 @@ class ImageProxy
"Referer" => fake_referer_for(url),
"User-Agent" => "#{Danbooru.config.safe_app_name}/#{Danbooru.config.version}"
}
response = HTTParty.get(url, headers: headers)
response = HTTParty.get(url, Danbooru.config.httparty_options.merge(headers: headers))
if response.success?
return response
else