Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix requests timeout

Chocobozzze81f6ccf989d
diff --git a/server/helpers/requests.ts b/server/helpers/requests.ts
index 5354780170..74ed1d7865 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,