aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server/helpers/requests.ts5
1 files changed, 1 insertions, 4 deletions
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({
96 path 96 path
97 }, httpSignatureOptions) 97 }, httpSignatureOptions)
98 } 98 }
99 },
100
101 (options: GotOptions) => {
102 options.timeout = REQUEST_TIMEOUT
103 } 99 }
104 ] 100 ]
105 } 101 }
@@ -213,6 +209,7 @@ function buildGotOptions (options: PeerTubeRequestOptions) {
213 return { 209 return {
214 method: options.method, 210 method: options.method,
215 dnsCache: true, 211 dnsCache: true,
212 timeout: REQUEST_TIMEOUT,
216 json: options.json, 213 json: options.json,
217 searchParams: options.searchParams, 214 searchParams: options.searchParams,
218 headers, 215 headers,