Make following redirects explicit in HttpClient::get
This commit is contained in:
parent
78afbb3599
commit
0e1e5b7d55
7 changed files with 21 additions and 15 deletions
|
@ -253,7 +253,7 @@ impl Contact {
|
|||
|
||||
async fn fetch_avatar(http: &dyn HttpClient, url: &str) -> Result<Arc<ImageData>> {
|
||||
let mut response = http
|
||||
.get(url, Default::default())
|
||||
.get(url, Default::default(), true)
|
||||
.await
|
||||
.map_err(|e| anyhow!("failed to send user avatar request: {}", e))?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue