feat: use global request options for global settings pass-thru (timeout, proxy, any other custom settings as desired)

This commit is contained in:
tiagosiebler
2020-10-05 10:26:36 +01:00
parent 3df54c341c
commit 0717a122c1

View File

@@ -82,6 +82,7 @@ module.exports = class RequestUtil {
}
const options = {
...this.globalRequestOptions,
url: [this.baseUrl, endpoint].join('/'),
method: method,
json: true