feat: use global request options for global settings pass-thru (timeout, proxy, any other custom settings as desired)
This commit is contained in:
@@ -82,6 +82,7 @@ module.exports = class RequestUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
|
...this.globalRequestOptions,
|
||||||
url: [this.baseUrl, endpoint].join('/'),
|
url: [this.baseUrl, endpoint].join('/'),
|
||||||
method: method,
|
method: method,
|
||||||
json: true
|
json: true
|
||||||
|
|||||||
Reference in New Issue
Block a user