diff --git a/src/Request/HttpsClient.ts b/src/Request/HttpsClient.ts index d883148..212d508 100644 --- a/src/Request/HttpsClient.ts +++ b/src/Request/HttpsClient.ts @@ -8,8 +8,8 @@ export default class HttpsClient { protected _options: AxiosRequestConfig = {}; private _axiosInstance: AxiosInstance; - constructor(agent?: Agent, timeout: number = 10000) { - this._options.timeout = timeout; + constructor(agent?: Agent, timeout?: number) { + this._options.timeout = timeout ?? 10000; this._options.maxRedirects = 10; this._options.withCredentials = true;