We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de42302 commit a7d0539Copy full SHA for a7d0539
src/cargo/ops/registry.rs
@@ -682,8 +682,8 @@ fn http_proxy(config: &Config) -> CargoResult<Option<String>> {
682
return Ok(Some(s.clone()));
683
}
684
if let Ok(cfg) = git2::Config::open_default() {
685
- if let Ok(s) = cfg.get_str("http.proxy") {
686
- return Ok(Some(s.to_string()));
+ if let Ok(s) = cfg.get_string("http.proxy") {
+ return Ok(Some(s));
687
688
689
Ok(None)
0 commit comments