mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 02:48:17 +00:00
Respect allow insecure host in publish (#8440)
This commit is contained in:
parent
614013ed58
commit
e7ae0f50d2
8 changed files with 38 additions and 30 deletions
|
@ -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()?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue