From 347d60acfed2b1fe6ed757641fa1da1b0a5ddfe1 Mon Sep 17 00:00:00 2001 From: LSAITHARUN Date: Mon, 19 Jul 2021 16:04:55 +0530 Subject: [PATCH] Changed request timeout default value to 5 --- lib/rest/axios.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/rest/axios.js b/lib/rest/axios.js index 5316274..ba74448 100644 --- a/lib/rest/axios.js +++ b/lib/rest/axios.js @@ -175,6 +175,9 @@ export function Axios(config) { if (typeof config.timeout !== 'undefined') { options.timeout = config.timeout; } + else if(typeof config.timeout === 'undefined'){ + options.timeout = 5000; + } return new Promise((resolve, reject) => { if (isVoiceReq) {