mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +03:00
Add timeouts to HTTP requests (#3908)
This commit is contained in:
@@ -16,7 +16,7 @@ pub async fn read_url(context: &Context, url: &str) -> anyhow::Result<String> {
|
||||
}
|
||||
|
||||
pub async fn read_url_inner(context: &Context, url: &str) -> anyhow::Result<String> {
|
||||
let client = reqwest::Client::new();
|
||||
let client = crate::http::get_client()?;
|
||||
let mut url = url.to_string();
|
||||
|
||||
// Follow up to 10 http-redirects
|
||||
|
||||
Reference in New Issue
Block a user