Skip to content

Commit 288de01

Browse files
fix bad rebase
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
1 parent 7cd0368 commit 288de01

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

core/src/env/reqwest_http.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ impl<Policy: HTTPAuthentication> HTTPEnvironmentAsync<Policy> {
160160
uri: S,
161161
version: T,
162162
) -> Result<Option<HTTPProjectAsync<Policy>>, HTTPEnvironmentError> {
163-
let this_url = self.project_kpar_url(&uri, &version)?;
163+
let project_kpar_url = self.project_kpar_url(&uri, &version)?;
164+
let this_url = project_kpar_url.clone();
164165
let kpar_project_request = move |client: &ClientWithMiddleware| {
165166
client
166167
.head(this_url.clone())
@@ -177,7 +178,7 @@ impl<Policy: HTTPAuthentication> HTTPEnvironmentAsync<Policy> {
177178

178179
Ok(Some(HTTPProjectAsync::HTTPKParProjectDownloaded(
179180
ReqwestKparDownloadedProject::new_guess_root(
180-
&this_url,
181+
&project_kpar_url,
181182
self.client.clone(),
182183
self.auth_policy.clone(),
183184
)

0 commit comments

Comments
 (0)