aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/util/http/curl_downloader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/util/http/curl_downloader.rs')
-rw-r--r--crates/shirabe/src/util/http/curl_downloader.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/shirabe/src/util/http/curl_downloader.rs b/crates/shirabe/src/util/http/curl_downloader.rs
index 508aa56e..3b65b0f6 100644
--- a/crates/shirabe/src/util/http/curl_downloader.rs
+++ b/crates/shirabe/src/util/http/curl_downloader.rs
@@ -644,7 +644,7 @@ impl CurlDownloader {
{
if !parse_url(&location_header, shirabe_php_shim::PHP_URL_SCHEME).is_null() {
// Absolute URL; e.g. https://example.com/composer
- target_url = location_header.clone();
+ target_url = location_header;
} else if !parse_url(&location_header, shirabe_php_shim::PHP_URL_HOST).is_null() {
// Scheme relative; e.g. //example.com/foo
target_url = format!(