mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 05:16:28 +03:00
Add timeouts to HTTP requests (#3908)
This commit is contained in:
@@ -381,7 +381,7 @@ struct CreateAccountErrorResponse {
|
||||
#[allow(clippy::indexing_slicing)]
|
||||
async fn set_account_from_qr(context: &Context, qr: &str) -> Result<()> {
|
||||
let url_str = &qr[DCACCOUNT_SCHEME.len()..];
|
||||
let response = reqwest::Client::new().post(url_str).send().await?;
|
||||
let response = crate::http::get_client()?.post(url_str).send().await?;
|
||||
let response_status = response.status();
|
||||
let response_text = response.text().await.with_context(|| {
|
||||
format!(
|
||||
|
||||
Reference in New Issue
Block a user