Respect allow insecure host in publish (#8440)

This commit is contained in:
konsti
2024-10-22 13:36:18 +02:00
committed by GitHub
parent 614013ed58
commit e7ae0f50d2
8 changed files with 38 additions and 30 deletions
+1 -1
View File
@@ -694,7 +694,7 @@ async fn read_url(
Ok((Either::Left(reader), Some(size)))
} else {
let response = client.client().get(url.clone()).send().await?;
let response = client.for_host(url).get(url.clone()).send().await?;
// Ensure the request was successful.
response.error_for_status_ref()?;