mirror of
https://github.com/donl/plivo-node.git
synced 2026-06-30 06:12:08 -06:00
Changed request timeout default value to 5
This commit is contained in:
parent
e50d38b4d9
commit
347d60acfe
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue