aboutsummaryrefslogtreecommitdiffstats
path: root/src/copyparty
diff options
context:
space:
mode:
Diffstat (limited to 'src/copyparty')
-rw-r--r--src/copyparty/mod.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/copyparty/mod.rs b/src/copyparty/mod.rs
index 1f075a0..dfc43dc 100644
--- a/src/copyparty/mod.rs
+++ b/src/copyparty/mod.rs
@@ -233,7 +233,10 @@ impl CopypartyClient {
233 base_url: base_url.trim_end_matches('/').to_string(), 233 base_url: base_url.trim_end_matches('/').to_string(),
234 upload_url: upload_url.trim_end_matches('/').to_string(), 234 upload_url: upload_url.trim_end_matches('/').to_string(),
235 password, 235 password,
236 client: Client::new(), 236 client: Client::builder()
237 .connect_timeout(Duration::from_secs(10))
238 .build()
239 .unwrap_or_default(),
237 } 240 }
238 } 241 }
239 242