Fix requests timeout
This commit is contained in:
parent
ac0725aa88
commit
e81f6ccf98
1 changed files with 1 additions and 4 deletions
|
@ -96,10 +96,6 @@ const peertubeGot = got.extend({
|
||||||
path
|
path
|
||||||
}, httpSignatureOptions)
|
}, httpSignatureOptions)
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
|
||||||
(options: GotOptions) => {
|
|
||||||
options.timeout = REQUEST_TIMEOUT
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -213,6 +209,7 @@ function buildGotOptions (options: PeerTubeRequestOptions) {
|
||||||
return {
|
return {
|
||||||
method: options.method,
|
method: options.method,
|
||||||
dnsCache: true,
|
dnsCache: true,
|
||||||
|
timeout: REQUEST_TIMEOUT,
|
||||||
json: options.json,
|
json: options.json,
|
||||||
searchParams: options.searchParams,
|
searchParams: options.searchParams,
|
||||||
headers,
|
headers,
|
||||||
|
|
Loading…
Reference in a new issue