From 0717a122c1774b5385d5f3ef1665860b1ad3dc25 Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Mon, 5 Oct 2020 10:26:36 +0100 Subject: [PATCH] feat: use global request options for global settings pass-thru (timeout, proxy, any other custom settings as desired) --- lib/util/requestWrapper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util/requestWrapper.js b/lib/util/requestWrapper.js index 309893e..a7c0cee 100644 --- a/lib/util/requestWrapper.js +++ b/lib/util/requestWrapper.js @@ -82,6 +82,7 @@ module.exports = class RequestUtil { } const options = { + ...this.globalRequestOptions, url: [this.baseUrl, endpoint].join('/'), method: method, json: true