From: Chocobozzz Date: Wed, 13 Oct 2021 07:57:20 +0000 (+0200) Subject: Fix requests timeout X-Git-Tag: v4.0.0-rc.1~274 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=e81f6ccf989d4573b59ec7b2bf2812fe3e9fb534;p=github%2FChocobozzz%2FPeerTube.git Fix requests timeout --- diff --git a/server/helpers/requests.ts b/server/helpers/requests.ts index 535478017..74ed1d786 100644 --- a/server/helpers/requests.ts +++ b/server/helpers/requests.ts @@ -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,