Skip to content

Commit

Permalink
headConnectionTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangtian616 committed Jan 15, 2025
1 parent 672644f commit b6ce7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/download/download_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ class DownloadManager {
required Duration connectionTimeout,
required Duration receiveTimeout,
}) : _isolateCount = isolateCount {
(_dio.httpClientAdapter as IOHttpClientAdapter).createHttpClient = () => createProxyHttpClient()..findProxy = ProxyConfig.toFindProxy(proxyConfig);
_dio = Dio(BaseOptions(connectTimeout: connectionTimeout, receiveTimeout: receiveTimeout));
(_dio.httpClientAdapter as IOHttpClientAdapter).createHttpClient = () => createProxyHttpClient()..findProxy = ProxyConfig.toFindProxy(proxyConfig);
}

void tryRecoverFromMetadata(bool deleteWhenUrlMismatch) {
Expand Down

0 comments on commit b6ce7dd

Please sign in to comment.