mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Implement RFC 7231 compliant relative URI and fragment handling in redirects (#13050)
This PR restores #13041 and integrates two PRs from @zanieb: * #13038 * #13040 It also adds tests for relative URI and fragment handling. Closes #13037. --------- Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
parent
576a4ae3a7
commit
4ee4a8861e
11 changed files with 696 additions and 37 deletions
|
@ -52,7 +52,7 @@ impl GitResolver {
|
|||
pub async fn github_fast_path(
|
||||
&self,
|
||||
url: &GitUrl,
|
||||
client: ClientWithMiddleware,
|
||||
client: &ClientWithMiddleware,
|
||||
) -> Result<Option<GitOid>, GitResolverError> {
|
||||
let reference = RepositoryReference::from(url);
|
||||
|
||||
|
@ -112,7 +112,7 @@ impl GitResolver {
|
|||
pub async fn fetch(
|
||||
&self,
|
||||
url: &GitUrl,
|
||||
client: ClientWithMiddleware,
|
||||
client: impl Into<ClientWithMiddleware>,
|
||||
disable_ssl: bool,
|
||||
offline: bool,
|
||||
cache: PathBuf,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue