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

@@ -9,7 +9,7 @@ class NicoSeigaApiClient
def get_illust(id)
uri = "#{BASE_URL}/illust/info?id=#{id}"
resp = HTTParty.get(uri)
resp = HTTParty.get(uri, Danbooru.config.httparty_options)
if resp.success?
parse_illust_xml_response(resp.body)
end
@@ -17,7 +17,7 @@ class NicoSeigaApiClient
def get_artist(id)
uri = "#{BASE_URL}/user/info?id=#{id}"
resp = HTTParty.get(uri)
resp = HTTParty.get(uri, Danbooru.config.httparty_options)
if resp.success?
parse_artist_xml_response(resp.body)
end