aboutsummaryrefslogtreecommitdiff
path: root/src/proxy_config.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-08 12:02:39 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-08 12:02:39 +0100
commit7599dfc0ef5b06d92eca8f9a954663e008a0b1fb (patch)
tree8d3c6402487e5397663cab2d35f77ed227c48390 /src/proxy_config.rs
parentd7f3c13fa409ef2ee1ee78c18aae47e57383bec0 (diff)
downloadtricot-7599dfc0ef5b06d92eca8f9a954663e008a0b1fb.tar.gz
tricot-7599dfc0ef5b06d92eca8f9a954663e008a0b1fb.zip
Use self-signed certificates if necessary
Diffstat (limited to 'src/proxy_config.rs')
-rw-r--r--src/proxy_config.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/proxy_config.rs b/src/proxy_config.rs
index 2807a3b..1b46305 100644
--- a/src/proxy_config.rs
+++ b/src/proxy_config.rs
@@ -60,13 +60,17 @@ impl std::fmt::Display for ProxyEntry {
HostDescription::Hostname(h) => write!(f, "{}", h)?,
HostDescription::Pattern(p) => write!(f, "Pattern('{}')", p.as_str())?,
}
- write!(f, "{} {}", self.path_prefix.as_ref().unwrap_or(&String::new()), self.priority)?;
+ write!(
+ f,
+ "{} {}",
+ self.path_prefix.as_ref().unwrap_or(&String::new()),
+ self.priority
+ )?;
if !self.add_headers.is_empty() {
write!(f, "+Headers: {:?}", self.add_headers)?;
}
Ok(())
}
-
}
#[derive(Debug)]