Add HTTP proxy support.

Add support for using a proxy for HTTP requests. Only used for external
requests, such as downloading files or talking to source sites such as
Pixiv or Twitter, not for internal requests, such as talking to IQDB or
Reportbooru.
This commit is contained in:
evazion
2021-08-28 01:17:32 -05:00
parent 349bf14764
commit bb7f24d279
5 changed files with 27 additions and 8 deletions

View File

@@ -269,7 +269,7 @@ module Sources
end
def api_client
PixivAjaxClient.new(Danbooru.config.pixiv_phpsessid)
PixivAjaxClient.new(Danbooru.config.pixiv_phpsessid, http: http)
end
def api_illust