mirror of
https://github.com/sadoyan/aralez.git
synced 2026-04-30 23:08:40 +08:00
removed unwrap
This commit is contained in:
@@ -144,7 +144,7 @@ impl ProxyHttp for LB {
|
|||||||
let port = self.config.proxy_port_tls.unwrap_or(443);
|
let port = self.config.proxy_port_tls.unwrap_or(443);
|
||||||
ctx.to_https = true;
|
ctx.to_https = true;
|
||||||
let mut s = String::with_capacity(64);
|
let mut s = String::with_capacity(64);
|
||||||
write!(&mut s, "https://{}:{}{}", host, port, uri).unwrap();
|
write!(&mut s, "https://{}:{}{}", host, port, uri).unwrap_or_default();
|
||||||
ctx.redirect_to = Some(s);
|
ctx.redirect_to = Some(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user