mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix requests timeout
This commit is contained in:
parent
ac0725aa88
commit
e81f6ccf98
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user