diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-26 22:03:25 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-26 22:03:34 +0900 |
| commit | c5850d62beabef0a6bcc4cf6a179589c0ba8f405 (patch) | |
| tree | 893e8903a8bd605da90fb5a460caba17f0789fea /crates/shirabe/src/util/http/curl_downloader.rs | |
| parent | f411daceacad66e0bd774fda7d3c5ef8533cc55c (diff) | |
| download | php-shirabe-c5850d62beabef0a6bcc4cf6a179589c0ba8f405.tar.gz php-shirabe-c5850d62beabef0a6bcc4cf6a179589c0ba8f405.tar.zst php-shirabe-c5850d62beabef0a6bcc4cf6a179589c0ba8f405.zip | |
feat(factory): construct PluginManager after Rc::new_cyclic
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/util/http/curl_downloader.rs')
| -rw-r--r-- | crates/shirabe/src/util/http/curl_downloader.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crates/shirabe/src/util/http/curl_downloader.rs b/crates/shirabe/src/util/http/curl_downloader.rs index 87ea8ef..71c0b5a 100644 --- a/crates/shirabe/src/util/http/curl_downloader.rs +++ b/crates/shirabe/src/util/http/curl_downloader.rs @@ -339,9 +339,11 @@ impl CurlDownloader { if !Preg::is_match(r"{^http://(repo\.)?packagist\.org/p/}", url).unwrap_or(false) || (strpos(url, "$").is_none() && strpos(url, "%24").is_none()) { - self.config - .borrow_mut() - .prohibit_url_by_config(url, Some(&*self.io.borrow()), &options)?; + self.config.borrow_mut().prohibit_url_by_config( + url, + Some(&*self.io.borrow()), + &options, + )?; } let curl_handle = curl_init(); |
