Fix requests timeout

pull/4468/head
Chocobozzz 2021-10-13 09:57:20 +02:00
parent ac0725aa88
commit e81f6ccf98
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 4 deletions

View File

@ -96,10 +96,6 @@ const peertubeGot = got.extend({
path
}, httpSignatureOptions)
}
},
(options: GotOptions) => {
options.timeout = REQUEST_TIMEOUT
}
]
}
@ -213,6 +209,7 @@ function buildGotOptions (options: PeerTubeRequestOptions) {
return {
method: options.method,
dnsCache: true,
timeout: REQUEST_TIMEOUT,
json: options.json,
searchParams: options.searchParams,
headers,