Verified Commit e81f6ccf authored by Chocobozzz's avatar Chocobozzz
Browse files

Fix requests timeout

parent ac0725aa
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment