Use dns cache for requests

Prevent blocking issues in uv thread pool
pull/4229/head
Chocobozzz 2021-07-02 12:58:25 +02:00
parent 787409e64a
commit bbb3be686a
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 0 deletions

View File

@ -185,6 +185,7 @@ function buildGotOptions (options: PeerTubeRequestOptions) {
return {
method: options.method,
dnsCache: true,
json: options.json,
searchParams: options.searchParams,
timeout: options.timeout ?? REQUEST_TIMEOUT,