Add default timeout for initial response to attachment request

This commit is contained in:
trevor-signal 2024-08-13 16:23:29 -04:00 committed by GitHub
parent d2a9662b0c
commit 2cbc1a82b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3514,7 +3514,7 @@ export function initialize({
disableRetries: options?.disableRetries, disableRetries: options?.disableRetries,
proxyUrl, proxyUrl,
responseType: 'stream', responseType: 'stream',
timeout: options?.timeout || 0, timeout: options?.timeout ?? DEFAULT_TIMEOUT,
type: 'GET', type: 'GET',
redactUrl: redactor, redactUrl: redactor,
version, version,